[FIX] make log_has_backlog actually work
log_has_backlog used to check for the presnece of tracked logfiles to determine the presence of logs. This does not work anymore. This patch uses the last file tracker to determine that.
This commit is contained in:
parent
9882a0cbdc
commit
7a7c2432cf
@ -777,7 +777,7 @@ int log_has_backlog(log_t *logdata, const char *destination)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
logfile_t *lf;
|
logfile_t *lf;
|
||||||
lf = list_get_first(&store->file_group);
|
lf = list_it_item(&store->file_it);
|
||||||
if (lf != list_get_last(&store->file_group))
|
if (lf != list_get_last(&store->file_group))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user