From 4080f93eb213f125c3a05c13d87af9f640b642b8 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Thu, 29 Sep 2016 11:11:28 +0200 Subject: [PATCH] Faster creation of smart edge collections. --- arangod/Cluster/ClusterInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arangod/Cluster/ClusterInfo.cpp b/arangod/Cluster/ClusterInfo.cpp index 0873132db4..d0d84243c4 100644 --- a/arangod/Cluster/ClusterInfo.cpp +++ b/arangod/Cluster/ClusterInfo.cpp @@ -1130,6 +1130,11 @@ int ClusterInfo::createCollectionCoordinator(std::string const& databaseName, // Update our cache: loadPlan(); + if (numberOfShards == 0) { + loadCurrent(); + return TRI_ERROR_NO_ERROR; + } + { CONDITION_LOCKER(locker, agencyCallback->_cv);