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

Disable streaming on client_state::close()

This commit is contained in:
Daniele Sciascia
2018-12-31 11:50:06 +01:00
parent 0441746368
commit a9e2fdccfc

View File

@ -54,6 +54,10 @@ void wsrep::client_state::close()
client_service_.bf_rollback();
transaction_.after_statement();
}
if (mode_ == m_local)
{
disable_streaming();
}
debug_log_state("close: leave");
}
@ -277,7 +281,8 @@ int wsrep::client_state::enable_streaming(
void wsrep::client_state::disable_streaming()
{
assert(state_ == s_exec && mode_ == m_local);
assert(mode_ == m_local);
assert(state_ == s_exec || state_ == s_quitting);
transaction_.streaming_context().disable();
}