diff options
author | Misha Tyulenev <misha@mongodb.com> | 2018-04-12 20:42:21 -0400 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2018-04-12 20:42:39 -0400 |
commit | b7b55e75bbf18bcd7e38fdee430e0fd972183f68 (patch) | |
tree | e773e93083c2b4ed6580a3e98261db724f845021 /src/mongo/rpc/metadata.cpp | |
parent | 8c59201055adc886541c42b53e72a8b70963ec4a (diff) | |
download | mongo-b7b55e75bbf18bcd7e38fdee430e0fd972183f68.tar.gz |
SERVER-32639 skip signing and validating clusterTime in arbiters
Diffstat (limited to 'src/mongo/rpc/metadata.cpp')
-rw-r--r-- | src/mongo/rpc/metadata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/metadata.cpp b/src/mongo/rpc/metadata.cpp index 7373dc62172..6fd398a466f 100644 --- a/src/mongo/rpc/metadata.cpp +++ b/src/mongo/rpc/metadata.cpp @@ -90,7 +90,7 @@ void readRequestMetadata(OperationContext* opCtx, const BSONObj& metadataObj) { uassertStatusOK(TrackingMetadata::readFromMetadata(trackingElem)); auto logicalClock = LogicalClock::get(opCtx); - if (logicalClock) { + if (logicalClock && logicalClock->isEnabled()) { auto logicalTimeMetadata = uassertStatusOK(rpc::LogicalTimeMetadata::readFromMetadata(logicalTimeElem)); |