-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Diagnostics
-
None
-
Fully Compatible
-
ALL
Started at https://github.com/mongodb/mongo/commit/955f62adbd320f1ef725572cf7b935880facab7e
Here's a test to reproduce:
db.getSiblingDB("test").getCollection("test").insert({x:1}) before = db.adminCommand('top').totals['test.test'].writeLock for(var i=0;i<1000;i++){ db.getSiblingDB("test").getCollection("test").insert({x:i}) } after = db.adminCommand('top').totals['test.test'].writeLock assert.gt(after.count, before.count) assert.gt(after.time, before.time)