From 6e97d9f05011b18252f5890f0e08dd10547edb1c Mon Sep 17 00:00:00 2001 From: andf-mongodb Date: Fri, 30 Apr 2021 14:33:54 -0400 Subject: [PATCH] DOCS-13920 directoryperdb remove empty dir --- source/reference/configuration-options.txt | 7 ++++++- source/reference/program/mongod.txt | 4 ++++ source/release-notes/5.0-compatibility.txt | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/source/reference/configuration-options.txt b/source/reference/configuration-options.txt index 2b76d505fdd..5dea364c905 100644 --- a/source/reference/configuration-options.txt +++ b/source/reference/configuration-options.txt @@ -3566,7 +3566,12 @@ LDAP Parameters The :setting:`storage.directoryPerDB` setting is available only for :binary:`~bin.mongod`. .. include:: /includes/not-available-for-inmemory-storage-engine.rst - + + Starting in MongoDB 5.0, dropping the final collection in a database + (or dropping the database itself) when + :setting:`storage.directoryPerDB` is enabled deletes the newly empty + subdirectory for that database. + To change the :setting:`storage.directoryPerDB` option for existing deployments: diff --git a/source/reference/program/mongod.txt b/source/reference/program/mongod.txt index 4d9c0016d0d..c34cdafde3f 100644 --- a/source/reference/program/mongod.txt +++ b/source/reference/program/mongod.txt @@ -1433,6 +1433,10 @@ Storage Options .. include:: /includes/not-available-for-inmemory-storage-engine.rst + Starting in MongoDB 5.0, dropping the final collection in a database + (or dropping the database itself) when :option:`--directoryperdb` is + enabled deletes the newly empty subdirectory for that database. + To change the :option:`--directoryperdb` option for existing deployments: diff --git a/source/release-notes/5.0-compatibility.txt b/source/release-notes/5.0-compatibility.txt index 606270fdc59..e2df9f7e156 100644 --- a/source/release-notes/5.0-compatibility.txt +++ b/source/release-notes/5.0-compatibility.txt @@ -204,6 +204,11 @@ General Changes stages ` allowed in a single pipeline is limited to 1000. +- Starting in MongoDB 5.0, dropping the final collection in a database + (or dropping the database itself) when + :setting:`~storage.directoryPerDB` or :option:`--directoryperdb` is + enabled deletes the newly empty subdirectory for that database. + - MongoDB 5.0 removes the ``--serviceExecutor`` command-line option and the corresponding ``net.serviceExecutor`` configuration option.