From 774c3a58373abbdad3e8e39c4ea4f0f7aa673fbc Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Thu, 1 Sep 2016 16:46:26 +0200 Subject: [PATCH] Implemented createIndex on LogicalCollection for cluster case --- arangod/VocBase/LogicalCollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/VocBase/LogicalCollection.cpp b/arangod/VocBase/LogicalCollection.cpp index 6832d906f5..f39abe7464 100644 --- a/arangod/VocBase/LogicalCollection.cpp +++ b/arangod/VocBase/LogicalCollection.cpp @@ -1071,7 +1071,6 @@ std::shared_ptr LogicalCollection::lookupIndex(VPackSlice const& info) co std::shared_ptr LogicalCollection::createIndex(Transaction* trx, VPackSlice const& info, bool& created) { - // TODO Coordinator case! // TODO Get LOCK for the vocbase auto idx = lookupIndex(info); @@ -1092,6 +1091,7 @@ std::shared_ptr LogicalCollection::createIndex(Transaction* trx, // In the coordinator case we do not fill the index // We only inform the others. addIndexCoordinator(idx, true); + created = true; return idx; }