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

Method tryCheckpoint

src/transaction/transaction_manager.cpp:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void TransactionManager::tryCheckpoint(main::ClientContext& clientContext) {
277 if (clientContext.isInMemory()) {
278 return;
279 }
280 std::unique_lock checkpointLck{mtxForCheckpoint, std::try_to_lock};
281 if (!checkpointLck.owns_lock()) {
282 return;
283 }
284 checkpointNoLock(clientContext);
285}
286
287void TransactionManager::checkpointNoLock(main::ClientContext& clientContext) {
288 QueryProgressScope progress{clientContext, 0.01};

Callers

nothing calls this directly

Calls 1

isInMemoryMethod · 0.80

Tested by

no test coverage detected