mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Do not call before/after command/statement for replaying client.
This commit is contained in:
@ -303,7 +303,9 @@ int trrep::server_context::on_apply(
|
|||||||
if (starts_transaction(txc.flags()) &&
|
if (starts_transaction(txc.flags()) &&
|
||||||
commits_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_command();
|
||||||
client_context.before_statement();
|
client_context.before_statement();
|
||||||
@ -318,7 +320,7 @@ int trrep::server_context::on_apply(
|
|||||||
{
|
{
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
if (txc.state() != trrep::transaction_context::s_replaying)
|
if (not_replaying)
|
||||||
{
|
{
|
||||||
client_context.after_statement();
|
client_context.after_statement();
|
||||||
client_context.after_command();
|
client_context.after_command();
|
||||||
|
Reference in New Issue
Block a user