fix shutdown of empty rose trees
This commit is contained in:
parent
32950b2b98
commit
1f336255f5
1 changed files with 10 additions and 6 deletions
|
@ -59,12 +59,16 @@ class gcIterator {
|
||||||
freeIt(0),
|
freeIt(0),
|
||||||
beginning_of_time_(beginning_of_time),
|
beginning_of_time_(beginning_of_time),
|
||||||
ts_col_(ts_col) {
|
ts_col_(ts_col) {
|
||||||
get_next();
|
if(*i_ != *iend_) {
|
||||||
if(have_newest_) {
|
get_next();
|
||||||
have_current_ = true; // needed by ++.
|
if(have_newest_) {
|
||||||
++(*this);
|
have_current_ = true; // needed by ++.
|
||||||
// assert(have_current_); // Should pass; commented out for perf.
|
++(*this);
|
||||||
}
|
// assert(have_current_); // Should pass; commented out for perf.
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
at_end_=true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
explicit gcIterator()
|
explicit gcIterator()
|
||||||
: i_(0),
|
: i_(0),
|
||||||
|
|
Loading…
Reference in a new issue