1
0
Fork 0

Adjust two error codes (TRI_ERROR_SHUTTING_DOWN). (#7779)

This commit is contained in:
Max Neunhöffer 2018-12-17 09:50:53 +01:00 committed by GitHub
parent 92b7df5a1d
commit 1c4430afdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -810,7 +810,7 @@ bool SynchronizeShard::first() {
"synchronizeOneShard: synchronization failed for shard ");
errorMessage += shard + ": shutdown in progress, giving up";
LOG_TOPIC(INFO, Logger::MAINTENANCE) << errorMessage;
_result.reset(TRI_ERROR_INTERNAL, errorMessage);
_result.reset(TRI_ERROR_SHUTTING_DOWN, errorMessage);
return false;
}
@ -951,7 +951,7 @@ ResultT<TRI_voc_tick_t> SynchronizeShard::catchupWithReadLock(
if (isStopping()) {
std::string errorMessage =
"synchronizeOneShard: startReadLockOnLeader (soft): shutting down";
return ResultT<TRI_voc_tick_t>::error(TRI_ERROR_INTERNAL, errorMessage);
return ResultT<TRI_voc_tick_t>::error(TRI_ERROR_SHUTTING_DOWN, errorMessage);
}
didTimeout = false;