Checkpoints the database and resets the wal file back to the beginning
| 1880 | |
| 1881 | // Checkpoints the database and resets the wal file back to the beginning |
| 1882 | void fullCheckpoint() { |
| 1883 | // A checkpoint cannot succeed while there is an outstanding transaction |
| 1884 | ASSERT(cursor == nullptr); |
| 1885 | |
| 1886 | resetReaders(); |
| 1887 | conn.checkpoint(false); |
| 1888 | |
| 1889 | resetReaders(); |
| 1890 | conn.checkpoint(true); |
| 1891 | } |
| 1892 | |
| 1893 | void resetReaders() { |
| 1894 | for (int i = 0; i < readThreads.size(); i++) |
no test coverage detected