From d7f56172fdedd73abc1d029b403073c9cedf6942 Mon Sep 17 00:00:00 2001 From: Dan Larkin Date: Fri, 21 Apr 2017 13:12:19 -0400 Subject: [PATCH] Fixed a status return in replication handler. --- arangod/RocksDBEngine/RocksDBRestReplicationHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arangod/RocksDBEngine/RocksDBRestReplicationHandler.cpp b/arangod/RocksDBEngine/RocksDBRestReplicationHandler.cpp index d634dc94ab..5882e6665a 100644 --- a/arangod/RocksDBEngine/RocksDBRestReplicationHandler.cpp +++ b/arangod/RocksDBEngine/RocksDBRestReplicationHandler.cpp @@ -2003,7 +2003,9 @@ int RocksDBRestReplicationHandler::processRestoreData( return res.errorNumber(); } - res = processRestoreDataBatch(trx, colName, useRevision, force, errorMsg); + int resCode = + processRestoreDataBatch(trx, colName, useRevision, force, errorMsg); + res.reset(resCode, errorMsg); res = trx.finish(res); return res.errorNumber();