From 006cef15212cf443794d9f62c31a031fc8d87fb5 Mon Sep 17 00:00:00 2001 From: Erwin Pe Date: Mon, 4 Apr 2022 20:50:36 +0000 Subject: SERVER-65205 Coverity analysis defect 122012: Array compared against 0 --- src/mongo/db/commands/fle2_compact.cpp | 4 ++-- 1 file 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)); -- cgit v1.2.1