Skip to content

Commit

Permalink
SERVER-2009 don't skip location on yield recovery when the location h…
Browse files Browse the repository at this point in the history
…as already been updated
  • Loading branch information
astaple committed Jun 2, 2011
1 parent 70fbe10 commit f2beea1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions db/clientcursor.cpp
Expand Up @@ -231,10 +231,13 @@ namespace mongo {
c->checkLocation();
DiskLoc tmp1 = c->refLoc();
if ( tmp1 != dl ) {
/* this might indicate a failure to call ClientCursor::updateLocation() */
// This might indicate a failure to call ClientCursor::updateLocation() but it can
// also happen during correct operation, see SERVER-2009.
problem() << "warning: cursor loc " << tmp1 << " does not match byLoc position " << dl << " !" << endl;
}
c->advance();
else {
c->advance();
}
if ( c->eof() ) {
// advanced to end
// leave ClientCursor in place so next getMore doesn't fail
Expand Down
2 changes: 0 additions & 2 deletions jstests/remove9.js
@@ -1,6 +1,5 @@
// SERVER-2009 Count odd numbered entries while updating and deleting even numbered entries.

if ( 0 ) { // SERVER-2009
t = db.jstests_remove9;
t.drop();
t.ensureIndex( {i:1} );
Expand All @@ -15,4 +14,3 @@ for( i = 0; i < 1000; ++i ) {
}

s();
}

0 comments on commit f2beea1

Please sign in to comment.