We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23b6500 commit 6cc3cddCopy full SHA for 6cc3cdd
src/mongo/db/repl/initial_syncer_fcb.cpp
@@ -2305,6 +2305,10 @@ void InitialSyncerFCB::_switchToDownloadedCallback(
2305
startup_recovery::StartupRecoveryMode::kReplicaSetMember);
2306
lock.lock();
2307
if (!status.isOK()) {
2308
+ // Corner case: we need to reset _inStorageChange flag here because
2309
+ // _restoreStorageLocation will not be called in this case
2310
+ _inStorageChange = false;
2311
+ _inStorageChangeCondition.notify_all();
2312
onCompletionGuard->setResultAndCancelRemainingWork_inlock(lock, status);
2313
return;
2314
}
0 commit comments