summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2011-09-12 16:37:53 -0400
committerEliot Horowitz <eliot@10gen.com>2012-02-20 09:29:01 -0500
commit3fc4863624c286a12d9c6b85dfd485f7cb87bb95 (patch)
tree0c789a7c06ab0953dca19ef8c665aa7d89cb7b69
parenta83ab12c51f9e8cf3457c46a4e1673461b037e79 (diff)
downloadmongo-3fc4863624c286a12d9c6b85dfd485f7cb87bb95.tar.gz
Correctly count bulk inserts in opcounters SERVER-3817
-rw-r--r--db/instance.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/instance.cpp b/db/instance.cpp
index 764571d92e5..1d5d58921d4 100644
--- a/db/instance.cpp
+++ b/db/instance.cpp
@@ -605,6 +605,8 @@ namespace mongo {
break;
js = d.nextJsObj(); // TODO: refactor to do objcheck outside of writelock
}
+
+ globalOpCounters.incInsertInWriteLock(n);
}
void receivedInsert(Message& m, CurOp& op) {