summaryrefslogtreecommitdiff
path: root/src/mongo/db/fle_crud.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2022-08-16 11:09:22 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-16 15:59:01 +0000
commitc3fb537c1168af29ee0b3fe570793263f06c8461 (patch)
treed077ec6ef5fb65a6abde9dfd48b7187e6c4f6279 /src/mongo/db/fle_crud.cpp
parente6da72a7ac2b1a8650de634fe06cc9f7b55db24e (diff)
downloadmongo-c3fb537c1168af29ee0b3fe570793263f06c8461.tar.gz
SERVER-67753 Clear payload counts on each pass
Diffstat (limited to 'src/mongo/db/fle_crud.cpp')
-rw-r--r--src/mongo/db/fle_crud.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/fle_crud.cpp b/src/mongo/db/fle_crud.cpp
index cd63b027b09..783ba424cdf 100644
--- a/src/mongo/db/fle_crud.cpp
+++ b/src/mongo/db/fle_crud.cpp
@@ -497,6 +497,7 @@ void processFieldsForInsert(FLEQueryInterface* queryImpl,
auto tagToken = FLETwiceDerivedTokenGenerator::generateESCTwiceDerivedTagToken(escToken);
auto valueToken =
FLETwiceDerivedTokenGenerator::generateESCTwiceDerivedValueToken(escToken);
+ payload.counts.clear();
int position = 1;
int count = 1;