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:51:00 +0000 |
commit | 8a86f72b69887a8c9c513876b6e88955d200d012 (patch) | |
tree | 7c81faf6783ebe3520faf3318462328f2e03f9df | |
parent | 7cda3b8762392abd1ae718d05bdf39b9bd67ca92 (diff) | |
download | mongo-8a86f72b69887a8c9c513876b6e88955d200d012.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 86854f7a257..8e2afc69448 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)); } |