diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-08-27 13:52:23 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-27 13:52:23 +0000 |
commit | 077f247b29e9f6c5afecec11bb41858ae95067b6 (patch) | |
tree | 090fe306fe92910a0427b0287e1763cac34ef2b9 /src/mongo/db/catalog/collection_catalog.h | |
parent | e650acdf68952bf967e9eb9cd2a8d990a4c502da (diff) | |
download | mongo-077f247b29e9f6c5afecec11bb41858ae95067b6.tar.gz |
Revert "SERVER-33272 Proactively close newly empty databases"
This reverts commit 40f226b5a9bfb4863268334d287a46fb226a22cf.
Diffstat (limited to 'src/mongo/db/catalog/collection_catalog.h')
-rw-r--r-- | src/mongo/db/catalog/collection_catalog.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/collection_catalog.h b/src/mongo/db/catalog/collection_catalog.h index 308c31173c5..f3886c3fea0 100644 --- a/src/mongo/db/catalog/collection_catalog.h +++ b/src/mongo/db/catalog/collection_catalog.h @@ -216,7 +216,7 @@ public: void onCloseCatalog(OperationContext* opCtx); /** - * Puts the catalog back in open state, removing the pre-close state. See onCloseCatalog. + * Puts the catatlog back in open state, removing the pre-close state. See onCloseCatalog. * * Must be called with the global lock acquired in exclusive mode. */ @@ -226,13 +226,6 @@ public: iterator end() const; /** - * Returns whether the database contains any collections. - */ - bool empty(StringData db) const { - return begin(db) == end(); - } - - /** * Lookup the name of a resource by its ResourceId. If there are multiple namespaces mapped to * the same ResourceId entry, we return the boost::none for those namespaces until there is * only one namespace in the set. If the ResourceId is not found, boost::none is returned. |