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:
@ -344,7 +344,7 @@ int n;
|
|||||||
}
|
}
|
||||||
spinlock_acquire(&router->binlog_lock);
|
spinlock_acquire(&router->binlog_lock);
|
||||||
router->current_pos = hdr->next_pos;
|
router->current_pos = hdr->next_pos;
|
||||||
router->last_written =+ size;
|
router->last_written += size;
|
||||||
router->last_event_pos = hdr->next_pos - hdr->event_size;
|
router->last_event_pos = hdr->next_pos - hdr->event_size;
|
||||||
spinlock_release(&router->binlog_lock);
|
spinlock_release(&router->binlog_lock);
|
||||||
return n;
|
return n;
|
||||||
|
Reference in New Issue
Block a user