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:
Markus Makela 2016-02-09 16:57:32 +02:00
parent d2b4713d27
commit 12ee568978

View File

@ -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;