From 41e8e0220d97d88b35ee6d62b27a68dbd2459d0f Mon Sep 17 00:00:00 2001 From: Kaveh Vahedipour Date: Wed, 3 May 2017 10:47:04 +0200 Subject: [PATCH] fixed bug in shard numbering --- arangod/Cluster/ClusterMethods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/Cluster/ClusterMethods.cpp b/arangod/Cluster/ClusterMethods.cpp index 850dbe07a7..22f2dcf16a 100644 --- a/arangod/Cluster/ClusterMethods.cpp +++ b/arangod/Cluster/ClusterMethods.cpp @@ -2251,7 +2251,7 @@ std::unordered_map> distributeShards( } // determine shard id - std::string shardId = "s" + StringUtils::itoa(id + 1 + i); + std::string shardId = "s" + StringUtils::itoa(id + i); shards.emplace(shardId, serverIds); }