diff options
author | Jason Rassi <rassi@10gen.com> | 2015-05-20 13:18:38 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-05-21 15:59:10 -0400 |
commit | 69324bb9b3f27306e6c52d7491154074efc22058 (patch) | |
tree | 638a2f36034d6e1e6454ac8d15827b7620e21275 | |
parent | 3e43c6efd8580ccc155e822d3d37dbc115494bc1 (diff) | |
download | mongo-69324bb9b3f27306e6c52d7491154074efc22058.tar.gz |
SERVER-18620 Log "staticYield can't unlock" msg inside RARELY block
-rw-r--r-- | src/mongo/db/clientcursor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp index d4fadf2a5b8..63e44649475 100644 --- a/src/mongo/db/clientcursor.cpp +++ b/src/mongo/db/clientcursor.cpp @@ -215,10 +215,12 @@ namespace mongo { CurOp * c = cc().curop(); while ( c->parent() ) c = c->parent(); - warning() << "ClientCursor::staticYield can't unlock b/c of recursive lock" - << " ns: " << ns - << " top: " << c->info() - << endl; + RARELY { + warning() << "ClientCursor::staticYield can't unlock b/c of recursive lock" + << " ns: " << ns + << " top: " << c->info() + << endl; + } } if ( rec ) |