Skip to content

Commit

Permalink
SERVER-371 mix skip types to scan fewer unused keys
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Jul 8, 2010
1 parent ce24481 commit a84e4a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/btreecursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ namespace mongo {
break;
bucket = b->advance(bucket, keyOfs, direction, "skipUnusedKeys");
u++;
if ( u % 10 == 0 ) {
skipOutOfRangeKeysAndCheckEnd();
}
}
if ( u > 10 )
OCCASIONALLY log() << "btree unused skipped:" << u << '\n';
Expand Down

0 comments on commit a84e4a1

Please sign in to comment.