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

Method publishCommit

src/transaction/transaction.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void Transaction::publishCommit() {
87 if (commitTS == common::INVALID_TRANSACTION) {
88 throw common::RuntimeException{"Cannot publish commit with an invalid commit timestamp."};
89 }
90 localStorage->commit();
91 undoBuffer->commit(commitTS);
92 if (hasCatalogChanges) {
93 Catalog::Get(*clientContext)->incrementVersion();
94 hasCatalogChanges = false;
95 }
96}
97
98void Transaction::rollback(storage::WAL*) {
99 // Rolling back the local storage will free + evict all optimistically-allocated pages

Callers 1

commitMethod · 0.80

Calls 1

commitMethod · 0.45

Tested by

no test coverage detected