diff options
author | Randolph Tan <randolph@10gen.com> | 2018-02-14 16:19:48 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2018-02-20 13:16:41 -0500 |
commit | 9d1a7c5be9edbfdd039723ee91455f35b5ecc948 (patch) | |
tree | 92d1596a5377f7ede17d65ed38fd523c06e1ba47 /src/mongo/db/keys_collection_manager.cpp | |
parent | 5436c851b8322a0cb18611be0672f6a76d6e2f38 (diff) | |
download | mongo-9d1a7c5be9edbfdd039723ee91455f35b5ecc948.tar.gz |
SERVER-33081 Reset KeysCollectionManager during rollback properly
Diffstat (limited to 'src/mongo/db/keys_collection_manager.cpp')
-rw-r--r-- | src/mongo/db/keys_collection_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/keys_collection_manager.cpp b/src/mongo/db/keys_collection_manager.cpp index 889b822477c..4f5bd5b1643 100644 --- a/src/mongo/db/keys_collection_manager.cpp +++ b/src/mongo/db/keys_collection_manager.cpp @@ -191,6 +191,10 @@ bool KeysCollectionManager::hasSeenKeys() { return _refresher.hasSeenKeys(); } +void KeysCollectionManager::clearCache() { + _keysCache.resetCache(); +} + void KeysCollectionManager::PeriodicRunner::refreshNow(OperationContext* opCtx) { auto refreshRequest = [this]() { stdx::lock_guard<stdx::mutex> lk(_mutex); |