diff options
author | Geert Bosch <geert@mongodb.com> | 2018-02-08 20:25:27 -0500 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2018-02-26 11:56:49 -0500 |
commit | f23bcbfa6d08c24b5570b3b29641f96babfc6a34 (patch) | |
tree | 5ae2feeb298f22a9ee86cef57c90327b84c81147 /src/mongo/db/storage/capped_callback.h | |
parent | 17ae3d8ac9a6aa8d3664cebe791692781f3f9ca4 (diff) | |
download | mongo-f23bcbfa6d08c24b5570b3b29641f96babfc6a34.tar.gz |
SERVER-31679 Limit journaling frequency without oplog waiters
Diffstat (limited to 'src/mongo/db/storage/capped_callback.h')
-rw-r--r-- | src/mongo/db/storage/capped_callback.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/storage/capped_callback.h b/src/mongo/db/storage/capped_callback.h index dab688ba711..4fcbeecd8e2 100644 --- a/src/mongo/db/storage/capped_callback.h +++ b/src/mongo/db/storage/capped_callback.h @@ -55,6 +55,11 @@ public: RecordData data) = 0; /** + * Returns true if there may be waiters. + */ + virtual bool haveCappedWaiters() = 0; + + /** * Used to notify any waiters when new documents may be visible in the capped collection. */ virtual void notifyCappedWaitersIfNeeded() = 0; |