diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-10-30 12:43:39 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-11-01 01:45:36 -0400 |
commit | 74237fef761fda1a4154d4cc0a231dfb66f552cd (patch) | |
tree | 5a3a841bdfea89cb6ad320cc6cc52e4802d2470a /src/mongo/db/logical_time_validator.cpp | |
parent | 0342b7bd64be6a8fec25a18ab633f2f9a27f0558 (diff) | |
download | mongo-74237fef761fda1a4154d4cc0a231dfb66f552cd.tar.gz |
SERVER-31757 Do not validate times that don't advance the clock
Diffstat (limited to 'src/mongo/db/logical_time_validator.cpp')
-rw-r--r-- | src/mongo/db/logical_time_validator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/logical_time_validator.cpp b/src/mongo/db/logical_time_validator.cpp index 98b217fb401..b9d51601afc 100644 --- a/src/mongo/db/logical_time_validator.cpp +++ b/src/mongo/db/logical_time_validator.cpp @@ -143,7 +143,7 @@ SignedLogicalTime LogicalTimeValidator::signLogicalTime(OperationContext* opCtx, Status LogicalTimeValidator::validate(OperationContext* opCtx, const SignedLogicalTime& newTime) { { stdx::lock_guard<stdx::mutex> lk(_mutex); - if (newTime.getTime() == _lastSeenValidTime.getTime()) { + if (newTime.getTime() <= _lastSeenValidTime.getTime()) { return Status::OK(); } } |