1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Added debug_crash() method to high priority service interface.

This commit is contained in:
Teemu Ollakka
2018-07-16 12:45:53 +03:00
parent 4418627f1b
commit 0efec1b8bd
4 changed files with 24 additions and 5 deletions

View File

@ -169,6 +169,11 @@ namespace wsrep
virtual bool is_replaying() const = 0;
bool must_exit() const { return must_exit_; }
/**
* Debug facility to crash the server at given point.
*/
virtual void debug_crash(const char* crash_point) = 0;
protected:
wsrep::server_state& server_state_;
bool must_exit_;