summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-02-12 14:29:13 -0500
committerRandolph Tan <randolph@10gen.com>2014-02-13 10:32:17 -0500
commit211cac34e574f92cfdf60b7b35312c8a7934118a (patch)
tree0ac11abf133e7f1df357315d16e60bae28133cba /src/mongo/db/curop.cpp
parent78b5eeb13142f0d9bcb43e67848d5fec2f29366d (diff)
downloadmongo-211cac34e574f92cfdf60b7b35312c8a7934118a.tar.gz
SERVER-12664 Change nUpdated to nMatched in bulk api results
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 551d7f92af1..67e1b32184e 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -361,8 +361,8 @@ namespace mongo {
returnedCounter.increment( nreturned );
if ( ninserted > 0 )
insertedCounter.increment( ninserted );
- if ( nupdated > 0 )
- updatedCounter.increment( nupdated );
+ if ( nMatched > 0 )
+ updatedCounter.increment( nMatched );
if ( ndeleted > 0 )
deletedCounter.increment( ndeleted );
if ( nscanned > 0 )