diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-17 21:04:19 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-17 21:04:40 -0400 |
commit | 5eda33f9fa40a1a17f9f63f904a8c147700d648c (patch) | |
tree | cbc7fbce6ca1928f39eb61670cb7218e011362ae /src/mongo/db/catalog/database_holder_impl.cpp | |
parent | 0a9350795577342633b5d4ab5f3792851f6d5938 (diff) | |
download | mongo-5eda33f9fa40a1a17f9f63f904a8c147700d648c.tar.gz |
SERVER-41583 Refactor the registration and de-registration of collection and catalog entry
Diffstat (limited to 'src/mongo/db/catalog/database_holder_impl.cpp')
-rw-r--r-- | src/mongo/db/catalog/database_holder_impl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/catalog/database_holder_impl.cpp b/src/mongo/db/catalog/database_holder_impl.cpp index d499edbfc67..b3561aa2958 100644 --- a/src/mongo/db/catalog/database_holder_impl.cpp +++ b/src/mongo/db/catalog/database_holder_impl.cpp @@ -40,7 +40,6 @@ #include "mongo/db/catalog/database_impl.h" #include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/operation_context.h" -#include "mongo/db/repl/oplog.h" #include "mongo/db/service_context.h" #include "mongo/db/stats/top.h" #include "mongo/db/storage/storage_engine.h" @@ -213,10 +212,8 @@ void DatabaseHolderImpl::close(OperationContext* opCtx, StringData ns) { } auto db = it->second; - repl::oplogCheckCloseDatabase(opCtx, db); CollectionCatalog::get(opCtx).onCloseDatabase(opCtx, dbName.toString()); - db->close(opCtx); delete db; db = nullptr; @@ -254,9 +251,7 @@ void DatabaseHolderImpl::closeAll(OperationContext* opCtx) { LOG(2) << "DatabaseHolder::closeAll name:" << name; Database* db = _dbs[name]; - repl::oplogCheckCloseDatabase(opCtx, db); CollectionCatalog::get(opCtx).onCloseDatabase(opCtx, name); - db->close(opCtx); delete db; _dbs.erase(name); |