Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-6625 Log commands as commands instead of queries in top stats

  • Loading branch information...
commit e716273e6e340b69d3ffc16545c297d76bca85fb 1 parent ff52cf9
@Zarkantho Zarkantho authored monkey101 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/mongo/db/ops/query.cpp
View
2  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() );
Please sign in to comment.
Something went wrong with that request. Please try again.