diff options
author | Antonio Fuschetto <antonio.fuschetto@mongodb.com> | 2022-03-02 08:16:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-02 08:46:29 +0000 |
commit | 22140dacf9c355f702da3c5d4892df709ceead66 (patch) | |
tree | 58f4ed49ad954a61b998a86416927aedbfe90c9d /src/mongo/db/pipeline/variables.cpp | |
parent | c0a8cbe58cc46253a94130d2cb64cdd8089b3551 (diff) | |
download | mongo-22140dacf9c355f702da3c5d4892df709ceead66.tar.gz |
SERVER-63742 Default topology time in shard can lead to infinite refresh in shard registry
Diffstat (limited to 'src/mongo/db/pipeline/variables.cpp')
-rw-r--r-- | src/mongo/db/pipeline/variables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/variables.cpp b/src/mongo/db/pipeline/variables.cpp index 0adcf0505ff..26793962efd 100644 --- a/src/mongo/db/pipeline/variables.cpp +++ b/src/mongo/db/pipeline/variables.cpp @@ -281,7 +281,7 @@ LegacyRuntimeConstants Variables::generateRuntimeConstants(OperationContext* opC if (opCtx->getClient()) { if (const auto vectorClock = VectorClock::get(opCtx)) { const auto now = vectorClock->getTime(); - if (now.clusterTime() != LogicalTime::kUninitialized) { + if (VectorClock::isValidComponentTime(now.clusterTime())) { return {Date_t::now(), now.clusterTime().asTimestamp()}; } } |