mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
some mr cleaning
This commit is contained in:
parent
4aeeedc9f6
commit
625190f3b1
@ -409,8 +409,8 @@ namespace mongo {
|
||||
BSONObj prev;
|
||||
list<BSONObj> all;
|
||||
|
||||
ProgressMeter fpm( db.count( mr.incLong ) );
|
||||
cursor = db.query( mr.incLong, Query().sort( sortKey ) );
|
||||
|
||||
while ( cursor->more() ){
|
||||
BSONObj o = cursor->next().getOwned();
|
||||
|
||||
@ -424,6 +424,7 @@ namespace mongo {
|
||||
all.clear();
|
||||
prev = o;
|
||||
all.push_back( o );
|
||||
fpm.hit();
|
||||
}
|
||||
|
||||
state.finalReduce( all );
|
||||
@ -436,6 +437,7 @@ namespace mongo {
|
||||
throw;
|
||||
}
|
||||
|
||||
db.dropCollection( mr.incLong );
|
||||
|
||||
long long finalCount = mr.renameIfNeeded( db );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user