From ee7452a9a1216a9931aefb301a0ee7f0dabff8af Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Wed, 21 Nov 2012 15:58:07 -0500 Subject: [PATCH 1/3] DOCS-782 update writeBacksQueued to reflect change from Boolean result --- source/reference/command/writeBacksQueued.txt | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/source/reference/command/writeBacksQueued.txt b/source/reference/command/writeBacksQueued.txt index 7a5f608b8d1..09a501cc389 100644 --- a/source/reference/command/writeBacksQueued.txt +++ b/source/reference/command/writeBacksQueued.txt @@ -3,11 +3,32 @@ writeBacksQueued (internal) =========================== .. default-domain:: mongodb - + .. dbcommand:: writeBacksQueued - :dbcommand:`writeBacksQueued` is an internal command that returns true if - there are operations in the write back queue for the given :program:`mongos`. - This command applies to :term:`sharded clusters ` only. - + :dbcommand:`writeBacksQueued` is an internal command that returns + a document reporting there are operations in the write back queue + for the given :program:`mongos` and information about the queues. + + :field Boolean hasOpsQueued: + + True if there are writeBack operations queued. + + :field integer totalOpsQueued: + + The number of operations queued. + + :field document queues: + + A document listing the queues, with fields detailing the size of + each queue and the time since the last call. + + n + + The size of the queue. + + minutesSinceLastCall + + The minutes since the last call. + .. slave-ok, admin-only From ea21b180eca3f23b5f77c079cd01c6a477c7e0d1 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Mon, 26 Nov 2012 15:53:02 -0500 Subject: [PATCH 2/3] checkpoint commit --- source/reference/command/writeBacksQueued.txt | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/source/reference/command/writeBacksQueued.txt b/source/reference/command/writeBacksQueued.txt index 09a501cc389..03a00642b38 100644 --- a/source/reference/command/writeBacksQueued.txt +++ b/source/reference/command/writeBacksQueued.txt @@ -9,26 +9,26 @@ writeBacksQueued (internal) :dbcommand:`writeBacksQueued` is an internal command that returns a document reporting there are operations in the write back queue for the given :program:`mongos` and information about the queues. - + :field Boolean hasOpsQueued: - + True if there are writeBack operations queued. - + :field integer totalOpsQueued: - + The number of operations queued. - + :field document queues: - + A document listing the queues, with fields detailing the size of each queue and the time since the last call. - - n - - The size of the queue. - - minutesSinceLastCall - - The minutes since the last call. - + + :field document queues.n: + + The size of the queue. + + :field document queues.minutesSinceLastCall: + + The minutes since the last call. + .. slave-ok, admin-only From d67adbd7a7b5c76678e1fdce2cec15d1dbcc9905 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Mon, 26 Nov 2012 18:00:13 -0500 Subject: [PATCH 3/3] Added example output --- source/reference/command/writeBacksQueued.txt | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/source/reference/command/writeBacksQueued.txt b/source/reference/command/writeBacksQueued.txt index 03a00642b38..0926141c572 100644 --- a/source/reference/command/writeBacksQueued.txt +++ b/source/reference/command/writeBacksQueued.txt @@ -31,4 +31,31 @@ writeBacksQueued (internal) The minutes since the last call. - .. slave-ok, admin-only +Examples +-------- + +.. code-block:: javascript + + > db.runCommand({writeBacksQueued: 1}) + { + "hasOpsQueued" : true, + "totalOpsQueued" : 7, + "queues" : { + "50a514204a0f431ff1944089" : { "n" : 0, "minutesSinceLastCall" : 1 }, + "50a854a2c302ba1c5aeaaf59" : { "n" : 0, "minutesSinceLastCall" : 0 }, + "50a854b65bbdacd51df98cb6" : { "n" : 0, "minutesSinceLastCall" : 0 }, + "50a854c6ff03535c6effb72e" : { "n" : 0, "minutesSinceLastCall" : 0 }, + "50a8553566232f70121071b3" : { "n" : 0, "minutesSinceLastCall" : 4 }, + "50aa4711bd3c78d62453017e" : { "n" : 0, "minutesSinceLastCall" : 0 }, + "50ac0df0293da708be675123" : { "n" : 0, "minutesSinceLastCall" : 1 } + }, + "ok" : 1 + } + + +.. slave-ok, admin-only + +.. The queue ids are BSON objectids, they correspond to the + mongos that has talked to this shard. This is derived from the + "serverID" field of the setShardVersion command the mongos + sends to the shard