1
0
Fork 0

Fix the fix of the arangodump bug in cluster.

This commit is contained in:
Max Neunhoeffer 2014-07-01 13:54:15 +02:00
parent 140072a8f0
commit c0fd6bac8d
1 changed files with 8 additions and 1 deletions

View File

@ -45,6 +45,7 @@
#include "Wal/Logfile.h"
#include "Wal/LogfileManager.h"
#include "Wal/Marker.h"
#include "Cluster/ServerState.h"
using namespace triagens;
@ -148,7 +149,13 @@ static bool AppendCollection (TRI_replication_dump_t* dump,
triagens::arango::CollectionNameResolver* resolver) {
if (translateCollectionIds) {
if (cid > 0) {
std::string name = resolver->getCollectionName(cid);
std::string name;
if (triagens::arango::ServerState::instance()->isDBserver()) {
name = resolver->getCollectionNameCluster(cid);
}
else {
name = resolver->getCollectionName(cid);
}
APPEND_STRING(dump->_buffer, name.c_str());
return true;
}