assert(f);
r = find_data_object_by_boot_id(f, boot_id, &o, NULL);
- if (r < 0)
+ if (r <= 0)
return r;
- if (r == 0)
- return -ENOENT;
return generic_array_bisect_plus_one(
f,
/* First, seek by time */
r = find_data_object_by_boot_id(f, boot_id, &o, &b);
- if (r < 0)
+ if (r <= 0)
return r;
- if (r == 0)
- return -ENOENT;
r = generic_array_bisect_plus_one(f,
le64toh(o->data.entry_offset),
return journal_file_move_to_entry_by_seqnum_for_data(f, d, j->current_location.seqnum, direction, ret, offset);
if (j->current_location.monotonic_set) {
r = journal_file_move_to_entry_by_monotonic_for_data(f, d, j->current_location.boot_id, j->current_location.monotonic, direction, ret, offset);
- if (r != -ENOENT)
+ if (r != 0)
return r;
/* The data object might have been invalidated. */
return journal_file_move_to_entry_by_seqnum(f, j->current_location.seqnum, direction, ret, offset);
if (j->current_location.monotonic_set) {
r = journal_file_move_to_entry_by_monotonic(f, j->current_location.boot_id, j->current_location.monotonic, direction, ret, offset);
- if (r != -ENOENT)
+ if (r != 0)
return r;
}
if (j->current_location.realtime_set)