}
it->upper_bound(k);
}
- get_object_key(end, &end_str);
- if (end.hobj.is_temp()) {
- if (temp)
- pend = end_str.c_str();
- else
- goto out;
+ if (end.hobj.is_max()) {
+ pend = temp ? temp_end_key.c_str() : end_key.c_str();
} else {
- pend = temp ? temp_end_key.c_str() : end_str.c_str();
+ get_object_key(end, &end_str);
+ if (end.hobj.is_temp()) {
+ if (temp)
+ pend = end_str.c_str();
+ else
+ goto out;
+ } else {
+ pend = temp ? temp_end_key.c_str() : end_str.c_str();
+ }
}
while (true) {
if (!it->valid() || strcmp(it->key().c_str(), pend) > 0) {