summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_impl.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-08-27 06:33:42 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-27 10:56:13 +0000
commit775f3f943d2c6ee13c67c495a24fffa958e98df3 (patch)
tree92ddb1d89b4fa3690f30641c6a0f30a3b659c1f9 /src/mongo/db/storage/storage_engine_impl.h
parent55de52a71489f41c18a7b226453d484c694d7c88 (diff)
downloadmongo-775f3f943d2c6ee13c67c495a24fffa958e98df3.tar.gz
SERVER-59005 replace TimestampMonitor::removeListener() with clearListeners
Diffstat (limited to 'src/mongo/db/storage/storage_engine_impl.h')
-rw-r--r--src/mongo/db/storage/storage_engine_impl.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.h b/src/mongo/db/storage/storage_engine_impl.h
index 1e5f07cda12..9c9b6b33f1f 100644
--- a/src/mongo/db/storage/storage_engine_impl.h
+++ b/src/mongo/db/storage/storage_engine_impl.h
@@ -257,15 +257,11 @@ public:
~TimestampMonitor();
/**
- * Adds a new listener to the monitor if it isn't already registered. A listener can only be
- * bound to one type of timestamp at a time.
+ * Removes registered listeners from the monitor.
*/
- void addListener(TimestampListener* listener);
+ void clearListeners();
- /**
- * Removes an existing listener from the monitor if it was registered.
- */
- void removeListener(TimestampListener* listener);
+ void addListener(TimestampListener* listener);
bool isRunning_forTestOnly() const {
return _running;