1
0
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:
Daniele Sciascia
2019-02-14 00:31:17 +01:00
parent f80f97db2f
commit b614822f08
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,8 @@ namespace db
{ {
return true; 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; return 0;
} }

View File

@ -146,7 +146,7 @@ namespace wsrep
bool statement_allowed_for_streaming() const WSREP_OVERRIDE bool statement_allowed_for_streaming() const WSREP_OVERRIDE
{ return true; } { 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 WSREP_OVERRIDE
{ {
if (error_during_prepare_data_) if (error_during_prepare_data_)
@ -156,6 +156,7 @@ namespace wsrep
static const char buf[1] = { 1 }; static const char buf[1] = { 1 };
buffer.push_back(&buf[0], &buf[1]); buffer.push_back(&buf[0], &buf[1]);
wsrep::const_buffer data(buffer.data(), buffer.size()); wsrep::const_buffer data(buffer.data(), buffer.size());
position = buffer.size();
return client_state_.append_data(data); return client_state_.append_data(data);
} }