mirror of https://gitee.com/bigwinds/arangodb
Fix the fix of the arangodump bug in cluster.
This commit is contained in:
parent
140072a8f0
commit
c0fd6bac8d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue