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

Method checkpoint

src/transaction/transaction_manager.cpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void TransactionManager::checkpoint(main::ClientContext& clientContext) {
199 if (clientContext.isInMemory()) {
200 return;
201 }
202 // Use the dedicated checkpoint mutex so active writers can still commit/rollback
203 // during the drain phase.
204 std::unique_lock checkpointLck{mtxForCheckpoint};
205 checkpointNoLock(clientContext);
206}
207
208TransactionManager* TransactionManager::Get(const main::ClientContext& context) {
209 if (context.getAttachedDatabase() != nullptr) {

Callers

nothing calls this directly

Calls 1

isInMemoryMethod · 0.80

Tested by

no test coverage detected