diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-11-13 09:36:35 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-13 20:34:49 +0000 |
commit | 8a6082c74e1f6336784ad46cc609adc540d51712 (patch) | |
tree | f293d747011e1bc2aca97ca8c696f5a33cf6aa1a /src/mongo/db/repl/storage_interface_impl.cpp | |
parent | 8f9823f644d0b6beba8a301866141a578d278534 (diff) | |
download | mongo-8a6082c74e1f6336784ad46cc609adc540d51712.tar.gz |
SERVER-51425: Pause JournalFlusher during replication rollback
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index 352a0bf9f8e..e0480e3864d 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -1310,7 +1310,7 @@ Timestamp StorageInterfaceImpl::recoverToStableTimestamp(OperationContext* opCtx // Pass an InterruptedDueToReplStateChange error to async callers waiting on the JournalFlusher // thread for durability. Status reason = Status(ErrorCodes::InterruptedDueToReplStateChange, "Rollback in progress."); - StorageControl::stopStorageControls(serviceContext, reason); + StorageControl::stopStorageControls(serviceContext, reason, /*forRestart=*/true); auto swStableTimestamp = serviceContext->getStorageEngine()->recoverToStableTimestamp(opCtx); fassert(31049, swStableTimestamp); |