fix shutdown of empty rose trees

This commit is contained in:
Sears Russell 2008-12-05 20:52:39 +00:00
parent 32950b2b98
commit 1f336255f5

View file

@ -59,11 +59,15 @@ class gcIterator {
freeIt(0),
beginning_of_time_(beginning_of_time),
ts_col_(ts_col) {
get_next();
if(have_newest_) {
have_current_ = true; // needed by ++.
++(*this);
// assert(have_current_); // Should pass; commented out for perf.
if(*i_ != *iend_) {
get_next();
if(have_newest_) {
have_current_ = true; // needed by ++.
++(*this);
// assert(have_current_); // Should pass; commented out for perf.
}
} else {
at_end_=true;
}
}
explicit gcIterator()