summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/clientcursor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index aebd23d4607..69e4467d2f9 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -309,8 +309,10 @@ namespace mongo {
static ClientCursor* find_inlock(CursorId id, bool warn = true) {
CCById::iterator it = clientCursorsById.find(id);
if ( it == clientCursorsById.end() ) {
- if ( warn )
- OCCASIONALLY out() << "ClientCursor::find(): cursor not found in map " << id << " (ok after a drop)\n";
+ if ( warn ) {
+ OCCASIONALLY out() << "ClientCursor::find(): cursor not found in map '" << id
+ << "' (ok after a drop)" << endl;
+ }
return 0;
}
return it->second;