Permalink
Browse files

Correctly count bulk inserts in opcounters SERVER-3817

  • Loading branch information...
1 parent a83ab12 commit 3fc4863624c286a12d9c6b85dfd485f7cb87bb95 @RedBeard0531 RedBeard0531 committed with erh Sep 12, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 db/instance.cpp
View
2 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) {

0 comments on commit 3fc4863

Please sign in to comment.