MCPcopy Create free account
hub / github.com/apple/foundationdb / fullCheckpoint

Function fullCheckpoint

fdbserver/KeyValueStoreSQLite.actor.cpp:1882–1891  ·  view source on GitHub ↗

Checkpoints the database and resets the wal file back to the beginning

Source from the content-addressed store, hash-verified

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++)

Callers 2

initFunction · 0.85
actionFunction · 0.85

Calls 2

resetReadersFunction · 0.85
checkpointMethod · 0.45

Tested by

no test coverage detected