Skip to content

Commit 93f86ae

Browse files
committed
SERVER-11643: log when locktype == NULL
1 parent 0070eae commit 93f86ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mongo/db/dbcommands.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,10 @@ namespace mongo {
15431543
client.curop()->ensureStarted();
15441544
retval = _execCommand(c, dbname, cmdObj, queryOptions, errmsg, result, fromRepl);
15451545
}
1546+
1547+
if ( retval && c->logTheOp() && ! fromRepl ) {
1548+
logOp("c", cmdns, cmdObj);
1549+
}
15461550
}
15471551
else if( c->locktype() != Command::WRITE ) {
15481552
// read lock

0 commit comments

Comments
 (0)