- Reference >
mongo
Shell Methods >- Sharding Methods >
- sh.waitForDLock()
sh.waitForDLock()¶
On this page
Definition¶
-
sh.
waitForDLock
(lockname, wait, timeout, interval)¶ Waits until the specified distributed lock changes state.
sh.waitForDLock()
is an internal method that takes the following arguments:Parameter Type Description lockname
string The name of the distributed lock. wait
boolean Optional. Set to true
to ensure the balancer is now active. Set tofalse
to wait until balancing stops and becomes inactive.timeout
integer Milliseconds to wait. interval
integer Milliseconds to sleep in each waiting cycle.