| 196 | } |
| 197 | |
| 198 | void 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 | |
| 208 | TransactionManager* TransactionManager::Get(const main::ClientContext& context) { |
| 209 | if (context.getAttachedDatabase() != nullptr) { |
nothing calls this directly
no test coverage detected