mirror of
https://github.com/schoebel/mars
synced 2025-03-05 12:57:35 +00:00
light: enforce contiguity of logrotate numbers
This commit is contained in:
parent
79f0f28ef7
commit
62a3d791d1
@ -2407,6 +2407,7 @@ void _rotate_trans(struct mars_rotate *rot)
|
|||||||
// try to setup new log
|
// try to setup new log
|
||||||
if (log_nr == trans_brick->new_input_nr &&
|
if (log_nr == trans_brick->new_input_nr &&
|
||||||
rot->next_relevant_log &&
|
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) {
|
(next_nr = _get_free_input(trans_brick)) >= 0) {
|
||||||
struct trans_logger_input *trans_input;
|
struct trans_logger_input *trans_input;
|
||||||
int status;
|
int status;
|
||||||
|
Loading…
Reference in New Issue
Block a user