summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2022-09-12 05:50:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-12 12:22:46 +0000
commit2ef7e19c54cfa3e96cd41819f4ab14bdc2d95f9f (patch)
treee597bc4b2ec864e0206800ef601b388fbe05566a
parent80e78ce7159c4adf6a0332eda578c8d770a76ba0 (diff)
downloadmongo-2ef7e19c54cfa3e96cd41819f4ab14bdc2d95f9f.tar.gz
SERVER-69207 Coverity fix use after move
(cherry picked from commit 310dd9f04ad50187706ae5e839a68171b356dbf0)
-rw-r--r--src/mongo/s/catalog/type_collection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/catalog/type_collection.cpp b/src/mongo/s/catalog/type_collection.cpp
index 5cc64eca8b5..320382f9e98 100644
--- a/src/mongo/s/catalog/type_collection.cpp
+++ b/src/mongo/s/catalog/type_collection.cpp
@@ -54,7 +54,7 @@ CollectionType::CollectionType(NamespaceString nss,
std::move(creationTime),
std::move(uuid),
std::move(keyPattern)) {
- invariant(creationTime != Timestamp(0, 0));
+ invariant(getTimestamp() != Timestamp(0, 0));
setEpoch(std::move(epoch));
}