summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2015-05-20 13:18:38 -0400
committerJason Rassi <rassi@10gen.com>2015-05-21 15:59:10 -0400
commit69324bb9b3f27306e6c52d7491154074efc22058 (patch)
tree638a2f36034d6e1e6454ac8d15827b7620e21275
parent3e43c6efd8580ccc155e822d3d37dbc115494bc1 (diff)
downloadmongo-69324bb9b3f27306e6c52d7491154074efc22058.tar.gz
SERVER-18620 Log "staticYield can't unlock" msg inside RARELY block
-rw-r--r--src/mongo/db/clientcursor.cpp10
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 )