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

Method writeCommitToWAL

src/transaction/transaction.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void 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
86void Transaction::publishCommit() {
87 if (commitTS == common::INVALID_TRANSACTION) {

Callers 1

commitMethod · 0.80

Calls 3

logCommitMethod · 0.80
logCommittedWALMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected