logger: improve trigger

This commit is contained in:
Thomas Schoebel-Theuer 2020-02-07 07:30:29 +01:00
parent 5767a2fdbf
commit 506f57d04b
1 changed files with 3 additions and 2 deletions

View File

@ -2823,6 +2823,7 @@ void trans_logger_log(struct trans_logger_brick *brick)
mars_limit_reset(&global_writeback.limiter); mars_limit_reset(&global_writeback.limiter);
brick->terminated = true; brick->terminated = true;
mars_trigger();
} }
////////////////////////////// log replay ////////////////////////////// ////////////////////////////// log replay //////////////////////////////
@ -3199,10 +3200,10 @@ void trans_logger_replay(struct trans_logger_brick *brick)
brick_msleep(1000); brick_msleep(1000);
} }
mars_trigger();
mars_limit_reset(brick->replay_limiter); mars_limit_reset(brick->replay_limiter);
brick->terminated = true; brick->terminated = true;
mars_trigger();
while (!brick_thread_should_stop()) { while (!brick_thread_should_stop()) {
brick_wait(brick->worker_event, brick_wait(brick->worker_event,
brick->worker_flag, brick->worker_flag,