| 64 | } |
| 65 | |
| 66 | void Transaction::commit(storage::WAL* wal) { |
| 67 | if (commitTS == common::INVALID_TRANSACTION) { |
| 68 | throw common::RuntimeException{"Cannot commit with an invalid commit timestamp."}; |
| 69 | } |
| 70 | uint64_t walCommitSequence = 0; |
| 71 | writeCommitToWAL(wal, walCommitSequence); |
| 72 | publishCommit(); |
| 73 | } |
| 74 | |
| 75 | void Transaction::writeCommitToWAL(storage::WAL* wal, uint64_t& walCommitSequence) { |
| 76 | walCommitSequence = 0; |