mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Allow direct manipulation of streaming context parameters.
Added a method to change streaming context fragment unit and size. The method has a side effect of resetting unit counter.
This commit is contained in:
@ -260,6 +260,14 @@ int wsrep::client_state::after_statement()
|
||||
// Streaming //
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void wsrep::client_state::streaming_params(
|
||||
enum wsrep::streaming_context::fragment_unit fragment_unit,
|
||||
size_t fragment_size)
|
||||
{
|
||||
assert(mode_ == m_local);
|
||||
transaction_.streaming_context().params(fragment_unit, fragment_size);
|
||||
}
|
||||
|
||||
int wsrep::client_state::enable_streaming(
|
||||
enum wsrep::streaming_context::fragment_unit
|
||||
fragment_unit,
|
||||
|
Reference in New Issue
Block a user