1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-16 02:01:44 +03:00

Do not call before/after command/statement for replaying client.

This commit is contained in:
Teemu Ollakka
2018-05-31 17:11:02 +03:00
parent ae93785a57
commit c73e7c8f5d

View File

@ -303,7 +303,9 @@ int trrep::server_context::on_apply(
if (starts_transaction(txc.flags()) &&
commits_transaction(txc.flags()))
{
if (txc.state() != trrep::transaction_context::s_replaying)
bool not_replaying(txc.state() !=
trrep::transaction_context::s_replaying);
if (not_replaying)
{
client_context.before_command();
client_context.before_statement();
@ -318,7 +320,7 @@ int trrep::server_context::on_apply(
{
ret = 1;
}
if (txc.state() != trrep::transaction_context::s_replaying)
if (not_replaying)
{
client_context.after_statement();
client_context.after_command();