summaryrefslogtreecommitdiff
path: root/db/instance.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-02 11:02:16 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-02 11:02:16 -0400
commit1b194a97c571b0c901ed0ca9d8935d0565000f59 (patch)
treec36b783e8f282d0b29878b7d003270ddc33bae54 /db/instance.cpp
parentcf576485f418d3c2eb5f223507d4f0b1267d4dd3 (diff)
downloadmongo-1b194a97c571b0c901ed0ca9d8935d0565000f59.tar.gz
fix cursor generation in mongos and clean up killCursor logging
Diffstat (limited to 'db/instance.cpp')
-rw-r--r--db/instance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/instance.cpp b/db/instance.cpp
index ab18d21f4af..ec3b793291c 100644
--- a/db/instance.cpp
+++ b/db/instance.cpp
@@ -380,7 +380,7 @@ namespace mongo {
int n = *x++;
uassert( 13004 , "sent 0 cursors to kill" , n >= 1 );
if ( n > 2000 ) {
- problem() << "Assertion failure, receivedKillCursors, n=" << n << endl;
+ log( n < 30000 ? LL_WARNING : LL_ERROR ) << "receivedKillCursors, n=" << n << endl;
assert( n < 30000 );
}
killCursors(n, (long long *) x);