Skip to content

Commit 82e75df

Browse files
committed
DOCS-13920 directoryperdb remove empty dir
1 parent 4b37658 commit 82e75df

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

source/reference/configuration-options.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3566,7 +3566,12 @@ LDAP Parameters
35663566
The :setting:`storage.directoryPerDB` setting is available only for :binary:`~bin.mongod`.
35673567

35683568
.. include:: /includes/not-available-for-inmemory-storage-engine.rst
3569-
3569+
3570+
Starting in MongoDB 5.0, dropping the final collection in a database
3571+
(or dropping the database itself) when
3572+
:setting:`storage.directoryPerDB` is enabled deletes the newly empty
3573+
subdirectory for that database.
3574+
35703575
To change the :setting:`storage.directoryPerDB` option for existing
35713576
deployments:
35723577

source/reference/program/mongod.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ Storage Options
14331433

14341434
.. include:: /includes/not-available-for-inmemory-storage-engine.rst
14351435

1436+
Starting in MongoDB 5.0, dropping the final collection in a database
1437+
(or dropping the database itself) when :option:`--directoryperdb` is
1438+
enabled deletes the newly empty subdirectory for that database.
1439+
14361440
To change the :option:`--directoryperdb` option for existing
14371441
deployments:
14381442

source/release-notes/5.0-compatibility.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ General Changes
204204
stages </reference/operator/aggregation-pipeline>` allowed in a single
205205
pipeline is limited to 1000.
206206

207+
- Starting in MongoDB 5.0, dropping the final collection in a database
208+
(or dropping the database itself) when
209+
:setting:`~storage.directoryPerDB` or :option:`--directoryperdb` is
210+
enabled deletes the newly empty subdirectory for that database.
211+
207212
- MongoDB 5.0 removes the ``--serviceExecutor`` command-line option and
208213
the corresponding ``net.serviceExecutor`` configuration option.
209214

0 commit comments

Comments
 (0)