journal: fix seeking by realtime/seqnum

This commit is contained in:
Lennart Poettering
2012-07-13 00:32:32 +02:00
parent ecf68b1d38
commit 91a31dde6e
+6 -2
View File
@@ -1611,8 +1611,10 @@ int journal_file_move_to_entry_by_seqnum_for_data(
Object *d;
int r;
assert(f);
r = journal_file_move_to_object(f, OBJECT_DATA, data_offset, &d);
if (r <= 0)
if (r < 0)
return r;
return generic_array_bisect_plus_one(f,
@@ -1635,8 +1637,10 @@ int journal_file_move_to_entry_by_realtime_for_data(
Object *d;
int r;
assert(f);
r = journal_file_move_to_object(f, OBJECT_DATA, data_offset, &d);
if (r <= 0)
if (r < 0)
return r;
return generic_array_bisect_plus_one(f,