summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
-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 )