sd-journal: exit loop once we got all fields we are interested in

This commit is contained in:
Lennart Poettering
2022-10-11 16:39:06 +02:00
parent 3388a4b582
commit 868503917d
+3
View File
@@ -1276,6 +1276,9 @@ static int get_dual_timestamp(sd_journal *j, dual_timestamp *ret_ts, sd_id128_t
r = parse_fieldv(data, length, message_fields, ELEMENTSOF(message_fields));
if (r < 0)
return r;
if (realtime && monotonic)
break;
}
if (r < 0)
return r;