MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / commit

Method commit

src/transaction/transaction.cpp:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void 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
75void Transaction::writeCommitToWAL(storage::WAL* wal, uint64_t& walCommitSequence) {
76 walCommitSequence = 0;

Callers 1

publishCommitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected