Skip to content

Commit 3b4432e

Browse files
author
Sam Kleinman
committed
DOCS-4801: getBalancerLockDetails
1 parent 7be2e2b commit 3b4432e

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

config/htaccess.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4872,4 +4872,11 @@ outputs:
48724872
- 'after-v2.4'
48734873
- 'master'
48744874
- 'manual'
4875+
---
4876+
from: /reference/method/sh.getBalancerLockDetails
4877+
to: /reference/method/js-sharding
4878+
code: 303
4879+
type: redirect
4880+
outputs:
4881+
- 'before-v2.6'
48754882
...

source/includes/ref-toc-method-sh.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
name: ":method:`sh._adminCommand`"
1+
name: ":method:`sh._adminCommand()`"
22
file: /reference/method/sh._adminCommand
33
description: "Runs a :term:`database command` against the admin database, like :method:`db.runCommand()`, but can confirm that it is issued against a :program:`mongos`."
44
---
5+
name: ":method:`sh.getBalancerLockDetails()`"
6+
file: /reference/method/sh.getBalancerLockDetails
7+
description: "Reports on the active balancer lock, if it exists."
8+
---
59
name: ":method:`sh._checkFullName()`"
610
file: /reference/method/sh._checkFullName
711
description: "Tests a namespace to determine if its well formed."
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===========================
2+
sh.getBalancerLockDetails()
3+
===========================
4+
5+
.. default-domain:: mongodb
6+
7+
.. method:: sh.getBalancerLockDetails()
8+
9+
Reports on the active balancer lock, if it exists.
10+
11+
:returns: ``null`` if lock document does not exist or no lock is
12+
not taken. Otherwise, returns the lock document.
13+
14+
:rtype: Document or ``null``.

source/reference/method/sh.status.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ Balancer
190190
process that holds the balancer lock, and the date and time that
191191
the process obtained the lock.
192192

193+
If there is an active balancer lock,
194+
:data:`~sh.status.balancer.currently-running` also reports the
195+
state of the balancer.
196+
193197
.. data:: sh.status.balancer.collections-with-active-migrations
194198

195199
:data:`~sh.status.balancer.collections-with-active-migrations`

0 commit comments

Comments
 (0)