main: tolerate startup phase of future qio

This commit is contained in:
Thomas Schoebel-Theuer 2022-06-02 11:19:33 +02:00 committed by Thomas Schoebel-Theuer
parent af157b6010
commit 86eb014173
1 changed files with 5 additions and 0 deletions

View File

@ -5338,6 +5338,11 @@ void _rotate_trans(struct mars_rotate *rot)
0);
if (unlikely(!rot->next_relevant_brick)) {
MARS_ERR_TO(rot->log_say, "could not open next transaction log '%s'\n", rot->next_relevant_log->d_path);
}
if (!rot->next_relevant_brick->power.led_on) {
MARS_DBG("startup '%s' not yet completed\n",
rot->next_relevant_log->d_path);
goto done;
}
trans_input = trans_brick->inputs[next_nr];