mirror of https://gitee.com/bigwinds/arangodb
Removed unnecessary TRI_json_t in RestReplicationHandler
This commit is contained in:
parent
5ba68d76e5
commit
1c040696b4
|
@ -2286,9 +2286,7 @@ void RestReplicationHandler::handleCommandRestoreDataCoordinator() {
|
|||
if (!doc.isNone() && type != REPLICATION_MARKER_REMOVE) {
|
||||
ShardID responsibleShard;
|
||||
bool usesDefaultSharding;
|
||||
std::unique_ptr<TRI_json_t> tmp(
|
||||
arangodb::basics::VelocyPackHelper::velocyPackToJson(doc));
|
||||
res = ci->getResponsibleShard(col->id_as_string(), tmp.get(), true,
|
||||
res = ci->getResponsibleShard(col->id_as_string(), doc, true,
|
||||
responsibleShard, usesDefaultSharding);
|
||||
if (res != TRI_ERROR_NO_ERROR) {
|
||||
errorMsg = "error during determining responsible shard";
|
||||
|
|
|
@ -27,12 +27,12 @@
|
|||
#include "Basics/Common.h"
|
||||
|
||||
#include "RestHandler/RestVocbaseBaseHandler.h"
|
||||
#include "Utils/CollectionNameResolver.h"
|
||||
#include "VocBase/replication-common.h"
|
||||
|
||||
class TRI_vocbase_col_t;
|
||||
|
||||
namespace arangodb {
|
||||
class CollectionNameResolver;
|
||||
class Transaction;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue