Skip to content

Commit

Permalink
DOCSP-36105 fsync Carification (#6255) (#6281)
Browse files Browse the repository at this point in the history
* DOCSP-36105 fsync clarification

* Replaces versionadded text with fsycn-mongos

* Fixes method text

* Adds facets
  • Loading branch information
kennethdyer committed Feb 7, 2024
1 parent f9843f5 commit 8b1fcbb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
3 changes: 3 additions & 0 deletions source/includes/fsync-mongos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

When the |fsync| runs on :program:`mongos`, it performs the fysnc operation on the
primary config server as well as the primary members of each shard in the cluster.
9 changes: 6 additions & 3 deletions source/reference/command/fsync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ fsync

.. default-domain:: mongodb

.. facet::
:name: genre
:values: reference

.. contents:: On this page
:local:
:backlinks: none
Expand All @@ -26,9 +30,8 @@ Definition

.. versionadded:: 7.0.2

When the ``fsync`` command runs on :program:`mongos`, it performs the
fsync operation on each shard in the cluster.

.. |fsync| replace:: ``fsync`` command
.. include:: /includes/fsync-mongos

As applications write data, MongoDB records the data in the storage layer
and then writes the data to disk within the
Expand Down
8 changes: 6 additions & 2 deletions source/reference/command/fsyncUnlock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ fsyncUnlock

.. default-domain:: mongodb

.. facet::
:name: genre
:values: reference

.. contents:: On this page
:local:
:backlinks: none
Expand All @@ -25,8 +29,8 @@ Definition

.. versionadded:: 7.0.2

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

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

Expand Down
8 changes: 6 additions & 2 deletions source/reference/method/db.fsyncLock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ db.fsyncLock()

.. default-domain:: mongodb

.. facet::
:name: genre
:values: reference

.. contents:: On this page
:local:
:backlinks: none
Expand All @@ -24,8 +28,8 @@ Definition

.. versionadded:: 7.0.2

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

.. |dbcommand| replace:: :dbcommand:`fsync` command
.. include:: /includes/fact-mongosh-shell-method-alt.rst
Expand Down
8 changes: 6 additions & 2 deletions source/reference/method/db.fsyncUnlock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ db.fsyncUnlock()

.. default-domain:: mongodb

.. facet::
:name: genre
:values: reference

.. contents:: On this page
:local:
:backlinks: none
Expand All @@ -23,8 +27,8 @@ Definition

.. versionadded:: 7.0.2

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

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

0 comments on commit 8b1fcbb

Please sign in to comment.