mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-09 13:22:47 +03:00
The changes:
* merged most of Seppo's changes by hand * enabled the replay of SR speedup feature * changed how binlog_cache is retrieved for SR speedup * moved set_fragments_from_table() to Wsrep_schema::recover_sr_transactions() * improved handling the "wsrep_is_sr" flags Several MTR tests still fail, for example galera_sr.GCF-900
This commit is contained in:
@@ -217,6 +217,14 @@ namespace wsrep
|
||||
* been enabled.
|
||||
*/
|
||||
virtual void debug_crash(const char* crash_point) = 0;
|
||||
|
||||
#ifdef WITH_WSREP_SR_SPEEDUP
|
||||
/**
|
||||
* Return the binlog cache for the currently execution
|
||||
* transaction or a NULL pointer if no such cache exists.
|
||||
*/
|
||||
virtual void *get_binlog_cache() = 0;
|
||||
#endif /* WITH_WSREP_SR_SPEEDUP */
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -67,7 +67,8 @@ namespace wsrep
|
||||
const wsrep::const_buffer& data,
|
||||
#ifdef WITH_WSREP_SR_SPEEDUP_REPLAY
|
||||
size_t offset,
|
||||
const wsrep::xid& xid, void * current_thd) = 0;
|
||||
const wsrep::xid& xid,
|
||||
void *binlog_cache) = 0;
|
||||
#else
|
||||
const wsrep::xid& xid) = 0;
|
||||
#endif /* WITH_WSREP_SR_SPEEDUP_REPLAY */
|
||||
|
@@ -144,6 +144,7 @@ namespace wsrep
|
||||
int xa_replay(wsrep::unique_lock<wsrep::mutex>&);
|
||||
#ifdef WITH_WSREP_SR_SPEEDUP
|
||||
int set_fragments_from_table();
|
||||
void *get_binlog_cache();
|
||||
#endif /* WITH_WSREP_SR_SPEEDUP */
|
||||
|
||||
bool pa_unsafe() const { return pa_unsafe_; }
|
||||
|
Reference in New Issue
Block a user