Skip to content

Commit daaa359

Browse files
committed
SERVER-22919 Shutdown cleanly after interrupting oplog application
1 parent 1e7fd17 commit daaa359

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mongo/db/repl/sync_tail.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,9 @@ void multiSyncApply(const std::vector<SyncTail::OplogEntry>& ops, SyncTail* st)
11301130

11311131
if (!s.isOK()) {
11321132
severe() << "Error applying operation (" << entry->raw.toString() << "): " << s;
1133+
if (inShutdown()) {
1134+
return;
1135+
}
11331136
fassertFailedNoTrace(16359);
11341137
}
11351138
} catch (const DBException& e) {

0 commit comments

Comments
 (0)