summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Pe <erwin.pe@mongodb.com>2022-04-04 20:50:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-04 21:40:19 +0000
commit006cef15212cf443794d9f62c31a031fc8d87fb5 (patch)
treef28b0ff04e84091f25bf3de2b9b492bf1bfe0c11
parent0493b83069d0a2597e8be9023afb480efb507c09 (diff)
downloadmongo-006cef15212cf443794d9f62c31a031fc8d87fb5.tar.gz
SERVER-65205 Coverity analysis defect 122012: Array compared against 0
-rw-r--r--src/mongo/db/commands/fle2_compact.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/fle2_compact.cpp b/src/mongo/db/commands/fle2_compact.cpp
index 2d930e6b05c..0b8a2982280 100644
--- a/src/mongo/db/commands/fle2_compact.cpp
+++ b/src/mongo/db/commands/fle2_compact.cpp
@@ -139,8 +139,8 @@ void upsertNullDocument(FLEQueryInterface* queryImpl,
if (hasNullDoc) {
// update the null doc with a replacement modification
write_ops::UpdateOpEntry updateEntry;
- updateEntry.setMulti("false");
- updateEntry.setUpsert("false");
+ updateEntry.setMulti(false);
+ updateEntry.setUpsert(false);
updateEntry.setQ(newNullDoc.getField("_id").wrap());
updateEntry.setU(mongo::write_ops::UpdateModification(
newNullDoc, write_ops::UpdateModification::ClassicTag(), true));