mirror of https://gitee.com/bigwinds/arangodb
Adjust two error codes (TRI_ERROR_SHUTTING_DOWN). (#7779)
This commit is contained in:
parent
92b7df5a1d
commit
1c4430afdf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue