main: no logrotate during detach

This commit is contained in:
Thomas Schoebel-Theuer 2020-01-28 10:02:48 +01:00
parent 39c3f94b20
commit 48fa210272

View File

@ -3888,6 +3888,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 &&
_check_allow(rot->global, rot->parent_path, "attach") &&
(rot->next_relevant_log->d_serial == trans_brick->inputs[log_nr]->inf.inf_sequence + 1 ||
trans_brick->cease_logging) &&
(next_nr = _get_free_input(trans_brick)) >= 0) {