mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
getOwned() on all cursor objects
This commit is contained in:
parent
11a2d82651
commit
18132e81cb
@ -197,19 +197,19 @@ namespace mongo {
|
|||||||
BSONObj d = cursor->next();
|
BSONObj d = cursor->next();
|
||||||
|
|
||||||
if ( min.isEmpty() ){
|
if ( min.isEmpty() ){
|
||||||
min = d["min"].Obj();
|
min = d["min"].Obj().getOwned();
|
||||||
max = d["max"].Obj();
|
max = d["max"].Obj().getOwned();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( max == d["min"].Obj() ){
|
if ( max == d["min"].Obj() ){
|
||||||
max = d["max"].Obj();
|
max = d["max"].Obj().getOwned();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
p->gotRange( min.getOwned() , max.getOwned() );
|
p->gotRange( min.getOwned() , max.getOwned() );
|
||||||
min = d["min"].Obj();
|
min = d["min"].Obj().getOwned();
|
||||||
max = d["max"].Obj();
|
max = d["max"].Obj().getOwned();
|
||||||
}
|
}
|
||||||
assert( ! min.isEmpty() );
|
assert( ! min.isEmpty() );
|
||||||
p->gotRange( min.getOwned() , max.getOwned() );
|
p->gotRange( min.getOwned() , max.getOwned() );
|
||||||
|
Loading…
Reference in New Issue
Block a user