mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-06 20:56:43 +03:00
Fixup to previous commit
Fix client_service in test mock and dbsim to update signature of method prepare_fragment_for_replication().
This commit is contained in:
@ -60,7 +60,8 @@ namespace db
|
||||
{
|
||||
return true;
|
||||
}
|
||||
int prepare_fragment_for_replication(wsrep::mutable_buffer&) override
|
||||
int prepare_fragment_for_replication(wsrep::mutable_buffer&,
|
||||
size_t& position) override
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ namespace wsrep
|
||||
|
||||
bool statement_allowed_for_streaming() const WSREP_OVERRIDE
|
||||
{ return true; }
|
||||
int prepare_fragment_for_replication(wsrep::mutable_buffer& buffer)
|
||||
int prepare_fragment_for_replication(wsrep::mutable_buffer& buffer, size_t& position)
|
||||
WSREP_OVERRIDE
|
||||
{
|
||||
if (error_during_prepare_data_)
|
||||
@ -156,6 +156,7 @@ namespace wsrep
|
||||
static const char buf[1] = { 1 };
|
||||
buffer.push_back(&buf[0], &buf[1]);
|
||||
wsrep::const_buffer data(buffer.data(), buffer.size());
|
||||
position = buffer.size();
|
||||
return client_state_.append_data(data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user