diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2022-09-12 05:50:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-12 12:22:46 +0000 |
commit | 2ef7e19c54cfa3e96cd41819f4ab14bdc2d95f9f (patch) | |
tree | e597bc4b2ec864e0206800ef601b388fbe05566a | |
parent | 80e78ce7159c4adf6a0332eda578c8d770a76ba0 (diff) | |
download | mongo-2ef7e19c54cfa3e96cd41819f4ab14bdc2d95f9f.tar.gz |
SERVER-69207 Coverity fix use after move
(cherry picked from commit 310dd9f04ad50187706ae5e839a68171b356dbf0)
-rw-r--r-- | src/mongo/s/catalog/type_collection.cpp | 2 |
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)); } |