summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-06-26 18:44:08 -0400
committerDan Pasette <dan@mongodb.com>2013-10-02 14:58:07 -0400
commit80adf5e6901e016ff2df21f85b3efa93b701b3b9 (patch)
tree6085e7b033354a9721ff1ce548e860a46eddf1c3
parent9976d1d8e9627010f0741612cbfee1ac6c1562f6 (diff)
downloadmongo-80adf5e6901e016ff2df21f85b3efa93b701b3b9.tar.gz
SERVER-9738 mongos should set the CursorNotFound bit when the cursor is not found
-rw-r--r--src/mongo/s/strategy_shard.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/s/strategy_shard.cpp b/src/mongo/s/strategy_shard.cpp
index 0d4adcef155..95079500d57 100644
--- a/src/mongo/s/strategy_shard.cpp
+++ b/src/mongo/s/strategy_shard.cpp
@@ -198,9 +198,10 @@ namespace mongo {
// the cursor, but make the exception more informative
//
- uasserted( 16336,
- str::stream() << "could not find cursor in cache for id " << id
- << " over collection " << ns );
+ LOG(6) << "could not find cursor in cache for id " << id
+ << " over collection " << ns << endl;
+ replyToQuery( ResultFlag_CursorNotFound , r.p() , r.m() , 0 , 0 , 0 );
+ return;
}
// we used ScopedDbConnection because we don't get about config versions