Fixed last_written being set to the size of the event
The addition used =+ instead of += which caused it to be an assignment.
This commit is contained in:
parent
d2b4713d27
commit
12ee568978
@ -344,7 +344,7 @@ int n;
|
||||
}
|
||||
spinlock_acquire(&router->binlog_lock);
|
||||
router->current_pos = hdr->next_pos;
|
||||
router->last_written =+ size;
|
||||
router->last_written += size;
|
||||
router->last_event_pos = hdr->next_pos - hdr->event_size;
|
||||
spinlock_release(&router->binlog_lock);
|
||||
return n;
|
||||
|
Loading…
x
Reference in New Issue
Block a user