From 8a95b40c90ed32259a94de6434e55630552e8bd0 Mon Sep 17 00:00:00 2001 From: Aaron Date: Sun, 1 Aug 2010 01:05:14 -0700 Subject: [PATCH] SERVER-1529 partial fix --- db/query.cpp | 2 ++ jstests/cursora.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/query.cpp b/db/query.cpp index 2a28b7d41e9..2f4debf65b5 100644 --- a/db/query.cpp +++ b/db/query.cpp @@ -649,6 +649,8 @@ namespace mongo { _cc.reset(); massert( 13338, "cursor dropped during query", false ); // TODO maybe we want to prevent recording the winning plan as well? + } else { + _c->checkLocation(); } } } diff --git a/jstests/cursora.js b/jstests/cursora.js index b928f529acd..dfe5845b236 100644 --- a/jstests/cursora.js +++ b/jstests/cursora.js @@ -11,7 +11,7 @@ function run( n ){ t.insert( { _id : i } ) db.getLastError() - join = startParallelShell( "sleep(50); db.cursora.remove( {} );" ); + join = startParallelShell( "sleep(50); db.cursora.remove( {} ); db.getLastError();" ); start = new Date() num = t.find( function(){ num = 2; for ( var x=0; x<1000; x++ ) num += 2; return num > 0; } ).sort( { _id : -1 } ).limit(n).itcount()