@@ -607,32 +607,32 @@ cluster`, do the following:
607
607
608
608
.. code-block:: javascript
609
609
610
- db.locks.find( { _id : "balancer" } ).pretty;
610
+ db.locks.find( { _id : "balancer" } ).pretty()
611
611
612
612
You can also use the following shell helper to return the same
613
613
information:
614
614
615
615
.. code-block:: javascript
616
616
617
- sh.getBalancerState().pretty
617
+ sh.getBalancerState().pretty()
618
618
619
619
When this command returns, you will see output like the following:
620
620
621
621
.. code-block:: javascript
622
622
623
623
{ "_id" : "balancer",
624
- "process" : "guaruja :1292810611:1804289383",
624
+ "process" : "mongos0.example.net :1292810611:1804289383",
625
625
"state" : 2,
626
626
"ts" : ObjectId("4d0f872630c42d1978be8a2e"),
627
627
"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",
629
629
"why" : "doing balance round" }
630
630
631
631
632
632
Here's what this tells you:
633
633
634
634
- The balancer originates from the :program:`mongos` running on the
635
- system with the hostname ``guaruja ``.
635
+ system with the hostname ``mongos0.example.net ``.
636
636
637
637
- The value in the ``state`` field indicates that a :program:`mongos`
638
638
has the lock. For version 2.0 and later, the value of an active lock
0 commit comments