summaryrefslogtreecommitdiff
path: root/src/mongo/db/time_proof_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/time_proof_service.cpp')
-rw-r--r--src/mongo/db/time_proof_service.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/time_proof_service.cpp b/src/mongo/db/time_proof_service.cpp
index 19cf095acd4..078a82da135 100644
--- a/src/mongo/db/time_proof_service.cpp
+++ b/src/mongo/db/time_proof_service.cpp
@@ -80,4 +80,11 @@ Status TimeProofService::checkProof(LogicalTime time, const TimeProof& proof, co
return Status::OK();
}
+void TimeProofService::resetCache() {
+ stdx::lock_guard<stdx::mutex> lk(_cacheMutex);
+ if (_cache) {
+ _cache = boost::none;
+ }
+}
+
} // namespace mongo