1
0
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:
Teemu Ollakka
2018-07-06 16:18:59 +03:00
parent e876418ed3
commit 3ff322386c
3 changed files with 9 additions and 2 deletions

View File

@ -361,7 +361,7 @@ namespace
uint32_t flags,
const wsrep_buf_t* buf,
const wsrep_trx_meta_t* meta,
wsrep_bool_t* exit_loop __attribute__((unused)))
wsrep_bool_t* exit_loop)
{
wsrep::high_priority_service* high_priority_service(
reinterpret_cast<wsrep::high_priority_service*>(ctx));
@ -384,6 +384,7 @@ namespace
{
return WSREP_CB_FAILURE;
}
*exit_loop = high_priority_service->must_exit();
return WSREP_CB_SUCCESS;
}
catch (const wsrep::runtime_error& e)