1
0
forked from bip/bip

make log_has_backlog aware of track_backlog.

This commit is contained in:
Arnaud Cornet 2007-11-25 15:39:38 +01:00
parent 546f86b592
commit 5faa6581b7

View File

@ -712,6 +712,9 @@ int log_has_backlog(log_t *logdata, char *destination)
if (lfg->memlog) if (lfg->memlog)
return !list_is_empty(lfg->memlog); return !list_is_empty(lfg->memlog);
if (!lfg->track_backlog)
return 0;
logfile_t *lf; logfile_t *lf;
lf = list_get_first(&lfg->file_group); lf = list_get_first(&lfg->file_group);
if (lf != list_get_last(&lfg->file_group)) if (lf != list_get_last(&lfg->file_group))