mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Record database log_postion for streaming
Class streaming_context can now keep track of database specific log position for streaming. Previously, it was assumed that the log position was based of off the buffer size which was filled in client_service::prepare_fragment_for_replication(). However, for XA the buffer may contain data that is not in the log. Therefore, subsequent calls to prepare_fragment_for_replication() could not find the appropriate log_position based on the certified_bytes(), which would returns the total number of bytes return in the buffers that were certified.
This commit is contained in:
@ -105,7 +105,7 @@ namespace wsrep
|
||||
* If there is no data to replicate, the method shall return
|
||||
* zero and leave the buffer empty.
|
||||
*/
|
||||
virtual int prepare_fragment_for_replication(wsrep::mutable_buffer&) = 0;
|
||||
virtual int prepare_fragment_for_replication(wsrep::mutable_buffer&, size_t&) = 0;
|
||||
|
||||
/**
|
||||
* Remove fragments from the storage within current transaction.
|
||||
|
Reference in New Issue
Block a user