diff options
author | Vesselina Ratcheva <31660559+vessy-mongodb@users.noreply.github.com> | 2022-04-21 19:08:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-21 19:45:34 +0000 |
commit | 14e04b0acc27f7d7092eb93bf1b2666c50226d06 (patch) | |
tree | d40cda1e2cb6859e28899646e5e05acd38a22087 /src/mongo/db/s/recoverable_critical_section_service.h | |
parent | 8f8616c7deca0d2c12539fbaab4fddf757b006ad (diff) | |
download | mongo-14e04b0acc27f7d7092eb93bf1b2666c50226d06.tar.gz |
SERVER-64627 Refactor onInitialSyncComplete and onStartupRecoveryComplete into new sharding hook that also works with FCBIS
Diffstat (limited to 'src/mongo/db/s/recoverable_critical_section_service.h')
-rw-r--r-- | src/mongo/db/s/recoverable_critical_section_service.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/s/recoverable_critical_section_service.h b/src/mongo/db/s/recoverable_critical_section_service.h index 3452cb0ede7..d1953b27942 100644 --- a/src/mongo/db/s/recoverable_critical_section_service.h +++ b/src/mongo/db/s/recoverable_critical_section_service.h @@ -104,11 +104,8 @@ public: void recoverRecoverableCriticalSections(OperationContext* opCtx); private: - void onStartupRecoveryComplete(OperationContext* opCtx) override final { - recoverRecoverableCriticalSections(opCtx); - } - - void onInitialSyncComplete(OperationContext* opCtx) override final { + void onInitialDataAvailable(OperationContext* opCtx, + bool isMajorityDataAvailable) override final { recoverRecoverableCriticalSections(opCtx); } |