mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Added must_exit boolean flag to high_priority_service interface
This is needed to allow slave threads to exit processing loop if requested by the DBMS.
This commit is contained in:
@ -21,7 +21,8 @@ namespace wsrep
|
||||
{
|
||||
public:
|
||||
high_priority_service(wsrep::server_state& server_state)
|
||||
: server_state_(server_state) { }
|
||||
: server_state_(server_state)
|
||||
, must_exit_() { }
|
||||
virtual ~high_priority_service() { }
|
||||
|
||||
int apply(const ws_handle& ws_handle, const ws_meta& ws_meta,
|
||||
@ -79,8 +80,11 @@ namespace wsrep
|
||||
virtual int log_dummy_write_set(const ws_handle&, const ws_meta&) = 0;
|
||||
|
||||
virtual bool is_replaying() const = 0;
|
||||
|
||||
bool must_exit() const { return must_exit_; }
|
||||
protected:
|
||||
wsrep::server_state& server_state_;
|
||||
bool must_exit_;
|
||||
};
|
||||
|
||||
class high_priority_switch
|
||||
|
Reference in New Issue
Block a user