diff options
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index 251518cc1d0..0dcb15a0110 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -264,7 +264,7 @@ StorageInterfaceImpl::createCollectionForBulkLoading( Status StorageInterfaceImpl::insertDocument(OperationContext* opCtx, const NamespaceString& nss, const BSONObj& doc) { - return insertDocuments(opCtx, nss, {doc}); + return insertDocuments(opCtx, nss, {InsertStatement(doc)}); } namespace { @@ -293,8 +293,8 @@ StatusWith<Collection*> getCollection(const AutoGetCollectionType& autoGetCollec Status insertDocumentsSingleBatch(OperationContext* opCtx, const NamespaceString& nss, - std::vector<BSONObj>::const_iterator begin, - std::vector<BSONObj>::const_iterator end) { + std::vector<InsertStatement>::const_iterator begin, + std::vector<InsertStatement>::const_iterator end) { AutoGetCollection autoColl(opCtx, nss, MODE_IX); auto collectionResult = @@ -319,7 +319,7 @@ Status insertDocumentsSingleBatch(OperationContext* opCtx, Status StorageInterfaceImpl::insertDocuments(OperationContext* opCtx, const NamespaceString& nss, - const std::vector<BSONObj>& docs) { + const std::vector<InsertStatement>& docs) { if (docs.size() > 1U) { try { if (insertDocumentsSingleBatch(opCtx, nss, docs.cbegin(), docs.cend()).isOK()) { |