0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

make sure not to use memory in a cursor when yielding SERVER-2447

This commit is contained in:
Eliot Horowitz 2011-03-01 10:50:39 -05:00
parent 68838eb4e6
commit a6ad2a1472

View File

@ -353,7 +353,7 @@ namespace mongo {
// at the end. If a key appears more times than entries allowed on a chunk, we issue a warning and
// split on the following key.
set<BSONObj> tooFrequentKeys;
splitKeys.push_back( c->currKey() );
splitKeys.push_back( c->currKey().getOwned() );
while ( cc->ok() ) {
currCount++;
BSONObj currKey = c->currKey();