diff options
Diffstat (limited to 'src/mongo/db/time_proof_service.cpp')
-rw-r--r-- | src/mongo/db/time_proof_service.cpp | 7 |
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 |