diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2021-02-09 10:28:32 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-09 16:23:40 +0000 |
commit | f1b8a15fe45c24df25e5f6b1ead5022bc56f9e3b (patch) | |
tree | bc66908909750a671b373250957669fcb5bd78ca /src | |
parent | 2a1c62250ab5c9f089a2e4699d454ed326057b82 (diff) | |
download | mongo-f1b8a15fe45c24df25e5f6b1ead5022bc56f9e3b.tar.gz |
SERVER-54268 Append nInserted for {ordered: true} time-series inserts
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/commands/write_commands/write_commands.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/write_commands/write_commands.cpp b/src/mongo/db/commands/write_commands/write_commands.cpp index 6a704cad9e5..ff84f0897e1 100644 --- a/src/mongo/db/commands/write_commands/write_commands.cpp +++ b/src/mongo/db/commands/write_commands/write_commands.cpp @@ -835,6 +835,7 @@ public: auto& baseReply = insertReply->getWriteReplyBase(); if (_batch.getOrdered()) { + baseReply.setN(_batch.getDocuments().size()); for (size_t i = 0; i < _batch.getDocuments().size(); ++i) { _performTimeseriesWritesSubset(opCtx, i, 1, &errors, &opTime, &electionId); if (!errors.empty()) { |