Previously it was setting it to GMAX (happened when one had end
set to not GMAX and max set to INT_MAX).
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
46d73a806c90b944c8596ad3d9dae3f5cf78d915)
dout(20) << __func__ << " oid " << it->oid() << " >= " << pend << dendl;
if (temp) {
if (end.hobj.is_temp()) {
+ if (it->valid() && it->key() < temp_end_key) {
+ *pnext = it->oid();
+ set_next = true;
+ }
break;
}
dout(30) << __func__ << " switch to non-temp namespace" << dendl;
dout(30) << __func__ << " pend " << pend << dendl;
continue;
}
+ if (it->valid() && it->key() < end_key) {
+ *pnext = it->oid();
+ set_next = true;
+ }
break;
}
dout(30) << __func__ << " key " << pretty_binary_string(it->key()) << dendl;