Skip to content

Commit 5ae94fe

Browse files
author
Sam Kleinman
committed
minor: javascript syntax error
1 parent de5c4cd commit 5ae94fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/administration/sharding.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -607,32 +607,32 @@ cluster`, do the following:
607607

608608
.. code-block:: javascript
609609

610-
db.locks.find( { _id : "balancer" } ).pretty;
610+
db.locks.find( { _id : "balancer" } ).pretty()
611611

612612
You can also use the following shell helper to return the same
613613
information:
614614

615615
.. code-block:: javascript
616616

617-
sh.getBalancerState().pretty
617+
sh.getBalancerState().pretty()
618618

619619
When this command returns, you will see output like the following:
620620

621621
.. code-block:: javascript
622622

623623
{ "_id" : "balancer",
624-
"process" : "guaruja:1292810611:1804289383",
624+
"process" : "mongos0.example.net:1292810611:1804289383",
625625
"state" : 2,
626626
"ts" : ObjectId("4d0f872630c42d1978be8a2e"),
627627
"when" : "Mon Dec 20 2010 11:41:10 GMT-0500 (EST)",
628-
"who" : "guaruja:1292810611:1804289383:Balancer:846930886",
628+
"who" : "mongos0.example.net:1292810611:1804289383:Balancer:846930886",
629629
"why" : "doing balance round" }
630630

631631

632632
Here's what this tells you:
633633

634634
- The balancer originates from the :program:`mongos` running on the
635-
system with the hostname ``guaruja``.
635+
system with the hostname ``mongos0.example.net``.
636636

637637
- The value in the ``state`` field indicates that a :program:`mongos`
638638
has the lock. For version 2.0 and later, the value of an active lock

0 commit comments

Comments
 (0)