mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-22390 special case InterruptedAtShutdown in waiting for replication inside RangeDeleter to avoid crash
This commit is contained in:
parent
bb591bb00d
commit
2d42c9ad4e
@ -276,6 +276,9 @@ bool _waitForMajority(OperationContext* txn, std::string* errMsg) {
|
||||
<< durationCount<Seconds>(elapsedTime)
|
||||
<< " seconds while waiting"
|
||||
" for deletions to be replicated to majority nodes";
|
||||
} else if (replStatus.status.code() == ErrorCodes::InterruptedAtShutdown) {
|
||||
*errMsg = str::stream() << "rangeDeleter interrupted by shutdown while waiting for "
|
||||
"deletions to be replicated to a majority of nodes";
|
||||
} else {
|
||||
LOG(elapsedTime < Seconds(30) ? 1 : 0)
|
||||
<< "rangeDeleter took " << durationCount<Seconds>(elapsedTime) << " seconds "
|
||||
|
Loading…
Reference in New Issue
Block a user