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:
parent
68838eb4e6
commit
a6ad2a1472
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user