0
0
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:
matt dannenberg 2016-02-07 16:20:51 -05:00
parent bb591bb00d
commit 2d42c9ad4e

View File

@ -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 "