summaryrefslogtreecommitdiff
path: root/client/parallel.cpp
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-06-16 16:14:17 -0400
committergregs <greg@10gen.com>2011-06-16 17:34:40 -0400
commit884e100ec01d21f493c327a72b92a5b1a5dfb440 (patch)
treed6e39c865cf55ba0d989c26fac262cad6f2c16cf /client/parallel.cpp
parent3316127d58babf98830a8f59fbb16c222df88107 (diff)
downloadmongo-884e100ec01d21f493c327a72b92a5b1a5dfb440.tar.gz
better logic for no-result in rs for parallel ops SERVER-2481
Diffstat (limited to 'client/parallel.cpp')
-rw-r--r--client/parallel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/parallel.cpp b/client/parallel.cpp
index 94453403067..f157927703f 100644
--- a/client/parallel.cpp
+++ b/client/parallel.cpp
@@ -506,7 +506,7 @@ namespace mongo {
) );
try{
- _cursors[i].raw()->initLazy();
+ _cursors[i].raw()->initLazy( ! firstPass );
}
catch( SocketException& e ){
socketExs.push_back( e.what() + errLoc );
@@ -645,6 +645,9 @@ namespace mongo {
warning() << errMsg.str() << endl;
}
+ if( retries > 0 )
+ log() << "successfully finished parallel query after " << retries << " retries" << endl;
+
}
ParallelSortClusteredCursor::~ParallelSortClusteredCursor() {