From 812994d459f9807582e1988b126fe414618a7466 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Thu, 17 Dec 2015 12:12:59 +0100 Subject: [PATCH] Fix arangodump in vpack branch. --- arangosh/V8Client/arangodump.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arangosh/V8Client/arangodump.cpp b/arangosh/V8Client/arangodump.cpp index dcea983565..5da613f0df 100644 --- a/arangosh/V8Client/arangodump.cpp +++ b/arangosh/V8Client/arangodump.cpp @@ -1134,12 +1134,13 @@ static int RunClusterDump (string& errorMsg) { // First we have to go through all the shards, what are they? VPackSlice const shards = parameters.get("shards"); - // Iterate over the Map of shardId to server + // Iterate over the Map of shardId to server list for (auto const it : VPackObjectIterator(shards)) { TRI_ASSERT(it.key.isString()); - TRI_ASSERT(it.value.isString()); + TRI_ASSERT(it.value.isArray()); + TRI_ASSERT(it.value[0].isString()); std::string shardName = it.key.copyString(); - std::string DBserver = it.value.copyString(); + std::string DBserver = it.value[0].copyString(); if (Progress) { cout << "# Dumping shard '" << shardName << "' from DBserver '"