logger: fix potential race on replay_end_pos

The variable should only be set from outside, e.g. mars_light.
This should also lead to more correct replay_code==2 results.
This commit is contained in:
Thomas Schoebel-Theuer 2013-06-18 10:57:32 +02:00
parent fe54abb225
commit 39ed143e27
1 changed files with 0 additions and 1 deletions

View File

@ -2882,7 +2882,6 @@ void trans_logger_replay(struct trans_logger_brick *brick)
MARS_DBG("EOF at %lld (old = %lld, end_pos = %lld)\n", new_finished_pos, finished_pos, brick->replay_end_pos);
if (!brick->continuous_replay_mode) {
// notice: finished_pos remains at old value here!
brick->replay_end_pos = finished_pos;
break;
}
brick_msleep(1000);