| 328 | } |
| 329 | |
| 330 | void CDB::Flush() |
| 331 | { |
| 332 | if (activeTxn) |
| 333 | return; |
| 334 | |
| 335 | // Flush database activity from memory pool to disk log |
| 336 | unsigned int nMinutes = 0; |
| 337 | if (fReadOnly) |
| 338 | nMinutes = 1; |
| 339 | |
| 340 | bitdb.dbenv->txn_checkpoint(nMinutes ? GetArg("-dblogsize", 100) * 1024 : 0, nMinutes, 0); |
| 341 | } |
| 342 | |
| 343 | void CDB::Close() |
| 344 | { |
no test coverage detected