If both end & start conditions are passed, we need to signal that there
are no more results when returning because the end condition is
satisifed.
Suggested-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
(cherry picked from commit
163c49fd1da8e819a0ff8c7c7aaa550b01b8012a)
continue;
/* keys are sorted by epoch, so once we're past end we're done */
- if (e.epoch >= end)
+ if (e.epoch >= end) {
+ *truncated = false;
return 0;
+ }
ret = cb(hctx, key, e, param);
if (ret < 0)