| 73 | } |
| 74 | |
| 75 | void Transaction::writeCommitToWAL(storage::WAL* wal, uint64_t& walCommitSequence) { |
| 76 | walCommitSequence = 0; |
| 77 | if (!shouldLogToWAL()) { |
| 78 | return; |
| 79 | } |
| 80 | DASSERT(localWAL && wal); |
| 81 | localWAL->logCommit(); |
| 82 | wal->logCommittedWAL(*localWAL, clientContext, walCommitSequence); |
| 83 | localWAL->clear(); |
| 84 | } |
| 85 | |
| 86 | void Transaction::publishCommit() { |
| 87 | if (commitTS == common::INVALID_TRANSACTION) { |
no test coverage detected