mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-06 15:02:41 +03:00
Removed SR store implementation detail from wsrep-lib
The following was moved to application side implementation: - Removed sr_store from streaming context. - Removed sr_state from transaction. - Removed get_binlog_cache() from client_service interface. Other: - Add SR applier reference to append_fragment_and_commit() to make it available for application. - Add separate interface call to rollback SR transactions on disconnect. Rolling back SR transactions due to rollback fragment and rolling back SR transactions due to disconnect have different behaviors. Have separate calls for these different cases for clarity. - Remove non-const transaction accessor, not needed anymore because SR state has been moved to application side. - Remove unneeded set_fragments_from_table().
This commit is contained in:
@@ -39,17 +39,17 @@ namespace db
|
||||
const wsrep::const_buffer&,
|
||||
wsrep::mutable_buffer&) override;
|
||||
int append_fragment_and_commit(
|
||||
wsrep::high_priority_service&,
|
||||
const wsrep::ws_handle&,
|
||||
const wsrep::ws_meta&,
|
||||
const wsrep::const_buffer&,
|
||||
int,
|
||||
const wsrep::xid&) override
|
||||
{ return 0; }
|
||||
int remove_fragments(const wsrep::ws_meta&) override
|
||||
{ return 0; }
|
||||
int commit(const wsrep::ws_handle&, const wsrep::ws_meta&) override;
|
||||
int rollback(const wsrep::ws_handle&, const wsrep::ws_meta&,
|
||||
bool skip_rollback = false) override;
|
||||
int rollback(const wsrep::ws_handle&, const wsrep::ws_meta&) override;
|
||||
int rollback_sr_on_disconnect() override;
|
||||
int apply_toi(const wsrep::ws_meta&, const wsrep::const_buffer&,
|
||||
wsrep::mutable_buffer&) override;
|
||||
int apply_nbo_begin(const wsrep::ws_meta&, const wsrep::const_buffer&,
|
||||
|
Reference in New Issue
Block a user