| 429 | } |
| 430 | |
| 431 | void REPL_trans_commit(thread_db* tdbb, jrd_tra* transaction) |
| 432 | { |
| 433 | const auto replicator = transaction->tra_replicator; |
| 434 | if (!replicator) |
| 435 | return; |
| 436 | |
| 437 | FbLocalStatus status; |
| 438 | replicator->commit(&status); |
| 439 | |
| 440 | // Commit is a terminal routine, we cannot throw here |
| 441 | checkStatus(tdbb, status, transaction, false); |
| 442 | |
| 443 | if (transaction->tra_replicator) |
| 444 | { |
| 445 | transaction->tra_replicator->dispose(); |
| 446 | transaction->tra_replicator = nullptr; |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | void REPL_trans_rollback(thread_db* tdbb, jrd_tra* transaction) |
| 451 | { |
no test coverage detected