diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-08-15 14:26:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-15 15:34:24 +0000 |
commit | dab5cd5899ce6760ec5176b79821fcc45812624a (patch) | |
tree | e7abd3c22ea84da8bdb05f5790a3c86058cad92e /src/mongo/db/mongod_main.cpp | |
parent | abca3f700aa1da45ea14c8f2dc6ab52f952e3945 (diff) | |
download | mongo-dab5cd5899ce6760ec5176b79821fcc45812624a.tar.gz |
SERVER-68635 Move the whole insert path out of CollectionImpl
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r-- | src/mongo/db/mongod_main.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp index 80fe723c81e..976a10d10f0 100644 --- a/src/mongo/db/mongod_main.cpp +++ b/src/mongo/db/mongod_main.cpp @@ -27,9 +27,6 @@ * it in the license file. */ - -#include "mongo/platform/basic.h" - #include "mongo/db/mongod_main.h" #include <boost/filesystem/operations.hpp> @@ -51,9 +48,9 @@ #include "mongo/db/auth/auth_op_observer.h" #include "mongo/db/auth/authorization_manager.h" #include "mongo/db/auth/sasl_options.h" -#include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/collection_catalog.h" #include "mongo/db/catalog/collection_impl.h" +#include "mongo/db/catalog/collection_write_path.h" #include "mongo/db/catalog/create_collection.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/database_holder_impl.h" @@ -295,8 +292,8 @@ void logStartup(OperationContext* opCtx) { } invariant(collection); - OpDebug* const nullOpDebug = nullptr; - uassertStatusOK(collection->insertDocument(opCtx, InsertStatement(o), nullOpDebug, false)); + uassertStatusOK(collection_internal::insertDocument( + opCtx, collection, InsertStatement(o), nullptr /* OpDebug */, false)); wunit.commit(); } |