| 274 | } |
| 275 | |
| 276 | void 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 | |
| 287 | void TransactionManager::checkpointNoLock(main::ClientContext& clientContext) { |
| 288 | QueryProgressScope progress{clientContext, 0.01}; |
nothing calls this directly
no test coverage detected