Skip to content

Commit 81c2427

Browse files
authored
DOCSP-36105 fsync Carification (#6255) (#6280)
* DOCSP-36105 fsync clarification * Replaces versionadded text with fsycn-mongos * Fixes method text * Adds facets
1 parent 739ad49 commit 81c2427

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

source/includes/fsync-mongos.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
When the |fsync| runs on :program:`mongos`, it performs the fysnc operation on the
3+
primary config server as well as the primary members of each shard in the cluster.

source/reference/command/fsync.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ fsync
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -26,9 +30,8 @@ Definition
2630

2731
.. versionadded:: 7.1
2832

29-
When the ``fsync`` command runs on :program:`mongos`, it performs the
30-
fsync operation on each shard in the cluster.
31-
33+
.. |fsync| replace:: ``fsync`` command
34+
.. include:: /includes/fsync-mongos
3235

3336
As applications write data, MongoDB records the data in the storage layer
3437
and then writes the data to disk within the

source/reference/command/fsyncUnlock.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ fsyncUnlock
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -25,8 +29,8 @@ Definition
2529

2630
.. versionadded:: 7.1
2731

28-
When the ``fsyncUnlock`` command runs on :program:`mongos`, it
29-
reduces the lock count for each shard in the cluster.
32+
.. |fsync| replace:: ``fsyncUnlock`` command
33+
.. include:: /includes/fsync-mongos
3034

3135
Use this command to unblock writes after you finish a backup operation.
3236

source/reference/method/db.fsyncLock.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ db.fsyncLock()
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -24,8 +28,8 @@ Definition
2428

2529
.. versionadded:: 7.1
2630

27-
When the ``db.fsyncLock`` method runs on :program:`mongos`, it applies an
28-
fsync lock to each shard in the cluster.
31+
.. |fsync| replace:: ``db.fsyncLock()`` method
32+
.. include:: /includes/fsync-mongos
2933

3034
.. |dbcommand| replace:: :dbcommand:`fsync` command
3135
.. include:: /includes/fact-mongosh-shell-method-alt.rst

source/reference/method/db.fsyncUnlock.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ db.fsyncUnlock()
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. contents:: On this page
812
:local:
913
:backlinks: none
@@ -23,8 +27,8 @@ Definition
2327

2428
.. versionadded:: 7.1
2529

26-
When the ``db.fsyncUnlock()`` method runs on :program:`mongos`, it
27-
reduces the lock count for each shard in the cluster.
30+
.. |fsync| replace:: ``db.fsyncUnlock()`` method
31+
.. include:: /includes/fsync-mongos
2832

2933
.. |dbcommand| replace:: :dbcommand:`fsyncUnlock` command
3034
.. include:: /includes/fact-mongosh-shell-method-alt.rst

0 commit comments

Comments
 (0)