diff options
author | Marcos José Grillo Ramirez <marcos.grillo@mongodb.com> | 2023-01-03 16:42:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-04 13:49:34 +0000 |
commit | a4d4fa6104bf04ae38b5e63334c77392799a9d13 (patch) | |
tree | 6586c802563d4f4a9ce07a72d2bf36a8772953f6 /src/mongo/db | |
parent | b8219efd20d68190d78cba8b2b705f6f02610179 (diff) | |
download | mongo-a4d4fa6104bf04ae38b5e63334c77392799a9d13.tar.gz |
SERVER-72301 Use ordered:false when inserting chunks in the create collection coordinator
(cherry picked from commit b572adc250b9ce7c37539e642c5d23c39f5c14dc)
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/s/create_collection_coordinator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/create_collection_coordinator.cpp b/src/mongo/db/s/create_collection_coordinator.cpp index 2f3c292cc53..56fc648b7ab 100644 --- a/src/mongo/db/s/create_collection_coordinator.cpp +++ b/src/mongo/db/s/create_collection_coordinator.cpp @@ -293,6 +293,11 @@ void insertChunks(OperationContext* opCtx, entries.push_back(chunk.toConfigBSON()); } insertOp.setDocuments(entries); + insertOp.setWriteCommandRequestBase([] { + write_ops::WriteCommandRequestBase wcb; + wcb.setOrdered(false); + return wcb; + }()); return insertOp; }()); |