summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replica_set_aware_service.h
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2022-03-16 18:48:49 +0000
committerJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2022-03-16 20:55:08 +0000
commit681216ac79a5768e8660c96ad9e5833abc6659d1 (patch)
tree7452041d163d2c5ac344007a8bde7cdb6406e75f /src/mongo/db/repl/replica_set_aware_service.h
parentd3212c756a97c47989239bbd440a3617a2bc2115 (diff)
downloadmongo-681216ac79a5768e8660c96ad9e5833abc6659d1.tar.gz
SERVER-64517 Recover RecoverableCriticalSection after initialSync and startupRecovery have completed
(cherry picked from commit ce0bbc5ec1728e443c5ff893a78693b24570b80d)
Diffstat (limited to 'src/mongo/db/repl/replica_set_aware_service.h')
-rw-r--r--src/mongo/db/repl/replica_set_aware_service.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replica_set_aware_service.h b/src/mongo/db/repl/replica_set_aware_service.h
index eb38cac0252..f7ea8c3a71e 100644
--- a/src/mongo/db/repl/replica_set_aware_service.h
+++ b/src/mongo/db/repl/replica_set_aware_service.h
@@ -118,6 +118,16 @@ public:
virtual void onStartup(OperationContext* opCtx) = 0;
/**
+ * Called after startup recovery has completed.
+ */
+ virtual void onStartupRecoveryComplete(OperationContext* opCtx) = 0;
+
+ /**
+ * Called after initial sync has completed.
+ */
+ virtual void onInitialSyncComplete(OperationContext* opCtx) = 0;
+
+ /**
* Called as part of ReplicationCoordinator shutdown.
*/
virtual void onShutdown() = 0;
@@ -190,6 +200,8 @@ public:
static ReplicaSetAwareServiceRegistry& get(ServiceContext* serviceContext);
void onStartup(OperationContext* opCtx) final;
+ void onStartupRecoveryComplete(OperationContext* opCtx) final;
+ void onInitialSyncComplete(OperationContext* opCtx) final;
void onShutdown() final;
void onStepUpBegin(OperationContext* opCtx, long long term) final;
void onStepUpComplete(OperationContext* opCtx, long long term) final;