-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.0.6, 2.1.2
-
Component/s: Diagnostics
-
None
-
ALL
In a database where the collection 'test.gamma' does not exist, I run the following shell command:
>> for( i in [ 1, 2, 3, 4,5,6,7,8,9,10]) { db.gamma.insert(
{x:i}); db.gamma.count(); }
I then run the following command to display the operations on that collection:
>> db.adminCommand('top').totals['test.gamma'];
{
"total" :
,
"readLock" :
,
"writeLock" :
,
"queries" :
,
"getmore" :
,
"insert" :
,
"update" :
,
"remove" :
,
"commands" :
}
Note that the counts show 10 inserts 10 write locks, and also 20 read locks and 20 queries.
I believe that it should show 0 queries and 10 commands.
Checking with "db.serverStatus().opcounters" shows that there should be 0 queries and 10 commands.
- related to
-
SERVER-7774 Add jstest for db.adminCommand('top')
- Closed