summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/collection_bulk_loader_impl.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2017-07-03 17:49:48 -0400
committerRandolph Tan <randolph@10gen.com>2017-07-12 13:20:42 -0400
commit1550eb477fcf883e861f63ffc988a6060a2fbfb1 (patch)
tree2ae92c69ae385f2788ec7ab2fad3aa77e7495ee9 /src/mongo/db/repl/collection_bulk_loader_impl.cpp
parent1d6008b049e65615b13404f0b877034cfa980220 (diff)
downloadmongo-1550eb477fcf883e861f63ffc988a6060a2fbfb1.tar.gz
SERVER-28912 Thread statement id from batched insert command oplog entry
Diffstat (limited to 'src/mongo/db/repl/collection_bulk_loader_impl.cpp')
-rw-r--r--src/mongo/db/repl/collection_bulk_loader_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/collection_bulk_loader_impl.cpp b/src/mongo/db/repl/collection_bulk_loader_impl.cpp
index daf349029b7..82a769c6c17 100644
--- a/src/mongo/db/repl/collection_bulk_loader_impl.cpp
+++ b/src/mongo/db/repl/collection_bulk_loader_impl.cpp
@@ -168,7 +168,7 @@ Status CollectionBulkLoaderImpl::insertDocuments(const std::vector<BSONObj>::con
// For capped collections, we use regular insertDocument, which will update
// pre-existing indexes.
const auto status = _autoColl->getCollection()->insertDocument(
- _opCtx.get(), *iter, nullptr, false);
+ _opCtx.get(), InsertStatement(*iter), nullptr, false);
if (!status.isOK()) {
return status;
}