Skip to content

Commit d512e4c

Browse files
authored
DOCSP-34844 freeSpaceTargetMB field (#5575)
* DOCSP-34844 freeSpaceTargetMB field * add to release notes * update code example * release notes toc * nit * nit * nit * NV edits * SW feedback
1 parent aadf07b commit d512e4c

File tree

4 files changed

+50
-2
lines changed

4 files changed

+50
-2
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ toc_landing_pages = [
211211
"/release-notes/7.0",
212212
"/release-notes/7.1",
213213
"/release-notes/7.2",
214+
"/release-notes/7.3",
214215
"/replication",
215216
"/security",
216217
"/sharding",

source/reference/command/compact.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ The command has the following syntax:
3030

3131
db.runCommand(
3232
{
33-
compact: <collection name>
33+
compact: <string>,
34+
force: <flag>, // Optional
35+
freeSpaceTargetMB: <int>, // Optional
36+
comment: <any>, // Optional
3437
}
3538
)
3639

@@ -39,7 +42,6 @@ Command Fields
3942

4043
The command takes the following fields:
4144

42-
4345
.. list-table::
4446
:header-rows: 1
4547
:widths: 20 20 80
@@ -62,6 +64,17 @@ The command takes the following fields:
6264
``compact`` to run on the :term:`primary` in
6365
a :term:`replica set`. ``compact`` does not block
6466
:ref:`crud` on the database it is compacting.
67+
68+
* - ``freeSpaceTargetMB``
69+
- Integer
70+
- .. versionadded: 7.3
71+
72+
Optional. Specifies the minimum amount of storage space, in megabytes,
73+
that must be recoverable for compaction to proceed. Compaction proceeds
74+
only if the amount of free storage space available is greater than
75+
``freeSpaceTargetMB``.
76+
77+
*Default:* 20
6578

6679
* - ``comment``
6780
- any

source/release-notes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ EOL Releases
7575
:maxdepth: 1
7676
:hidden:
7777

78+
/release-notes/7.3
7879
/release-notes/7.2
7980
/release-notes/7.1
8081
/release-notes/7.0

source/release-notes/7.3.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. _release-notes-7.3:
2+
3+
=================================================
4+
Release Notes for MongoDB 7.3 (Release Candidate)
5+
=================================================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: twocols
14+
15+
.. include:: /includes/rapid-release-short.rst
16+
17+
General Changes
18+
---------------
19+
20+
Compaction Improvements
21+
~~~~~~~~~~~~~~~~~~~~~~~
22+
23+
Starting in MongoDB 7.3, the :dbcommand:`compact` command includes a new
24+
``freeSpaceTargetMB`` option to specify the minimum amount of storage space, in
25+
megabytes, that must be recoverable for compaction to proceed.
26+
27+
.. toctree::
28+
:titlesonly:
29+
:hidden:
30+
31+
/release-notes/7.3-compatibility
32+
33+

0 commit comments

Comments
 (0)