From 9c1914dfb9fce5b2a6198690a6d0e87565e37037 Mon Sep 17 00:00:00 2001 From: dwight Date: Tue, 19 Oct 2010 09:29:22 -0400 Subject: [PATCH] better warning for clientcursors --- db/clientcursor.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/db/clientcursor.cpp b/db/clientcursor.cpp index 3534b974cb7..772983fd649 100644 --- a/db/clientcursor.cpp +++ b/db/clientcursor.cpp @@ -189,7 +189,22 @@ namespace mongo { break; } - wassert( toAdvance.size() < 5000 ); + if( toAdvance.size() >= 3000 ) { + log() << "perf warning MPW101: " << toAdvance.size() << " cursors for one diskloc " + << dl.toString() + << ' ' << toAdvance[1000]->ns + << ' ' << toAdvance[2000]->ns + << ' ' << toAdvance[1000]->_pinValue + << ' ' << toAdvance[2000]->_pinValue + << ' ' << toAdvance[1000]->pos + << ' ' << toAdvance[2000]->pos + << ' ' << toAdvance[1000]->_idleAgeMillis + << ' ' << toAdvance[2000]->_idleAgeMillis + << ' ' << toAdvance[1000]->_doingDeletes + << ' ' << toAdvance[2000]->_doingDeletes + << endl; + //wassert( toAdvance.size() < 5000 ); + } for ( vector::iterator i = toAdvance.begin(); i != toAdvance.end(); ++i ){ ClientCursor* cc = *i;