if(ru->is_slave==0)AssertFatal(ru->state==RU_RUN,"ru-%d state = %s != RU_RUN\n",ru->idx,ru_states[ru->state]);
elseif(ru->is_slave==1)AssertFatal(ru->state==RU_SYNC||ru->state==RU_RUN||ru->state==RU_CHECK_SYNC,"ru %d state = %s != RU_SYNC or RU_RUN or RU_CHECK_SYNC\n",ru->idx,ru_states[ru->state]);