diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2012-10-18 14:20:01 -0700 |
---|---|---|
committer | Dan Pasette <dan@10gen.com> | 2012-11-11 14:16:18 -0500 |
commit | e716273e6e340b69d3ffc16545c297d76bca85fb (patch) | |
tree | 30d62f917e29ffd1b28a7b4256cfbe514c703ce5 | |
parent | ff52cf92517a86eebb946b5b3c51df0d9621a01e (diff) | |
download | mongo-e716273e6e340b69d3ffc16545c297d76bca85fb.tar.gz |
SERVER-6625 Log commands as commands instead of queries in top stats
-rw-r--r-- | src/mongo/db/ops/query.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ops/query.cpp b/src/mongo/db/ops/query.cpp index 9e8b1d37f07..2b12e0d577a 100644 --- a/src/mongo/db/ops/query.cpp +++ b/src/mongo/db/ops/query.cpp @@ -913,13 +913,13 @@ namespace mongo { // Run a command. if ( pq.couldBeCommand() ) { + curop.markCommand(); BufBuilder bb; bb.skip(sizeof(QueryResult)); BSONObjBuilder cmdResBuf; if ( runCommands(ns, jsobj, curop, bb, cmdResBuf, false, queryOptions) ) { curop.debug().iscommand = true; curop.debug().query = jsobj; - curop.markCommand(); auto_ptr< QueryResult > qr; qr.reset( (QueryResult *) bb.buf() ); |