light: enforce contiguity of logrotate numbers

This commit is contained in:
Thomas Schoebel-Theuer 2013-01-21 19:02:02 +01:00
parent 79f0f28ef7
commit 62a3d791d1

View File

@ -2407,6 +2407,7 @@ void _rotate_trans(struct mars_rotate *rot)
// try to setup new log
if (log_nr == trans_brick->new_input_nr &&
rot->next_relevant_log &&
rot->next_relevant_log->d_serial == trans_brick->inputs[log_nr]->inf.inf_sequence + 1 &&
(next_nr = _get_free_input(trans_brick)) >= 0) {
struct trans_logger_input *trans_input;
int status;