8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00

Fixed CORE-6539: Replication plugin can crash engine returning nullptr from startTransaction() method

This commit is contained in:
Dmitry Yemanov 2021-04-17 10:58:08 +03:00
parent 35184ba4cb
commit 3b3e51eb04

View File

@ -203,6 +203,12 @@ namespace
if (!checkStatus(tdbb, status, transaction)) if (!checkStatus(tdbb, status, transaction))
return nullptr; return nullptr;
if (!transaction->tra_replicator)
{
transaction->tra_flags &= ~TRA_replicating;
return nullptr;
}
} }
// Ensure all active savepoints are replicated // Ensure all active savepoints are replicated