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

Method freePages

fdbserver/KeyValueStoreSQLite.actor.cpp:332–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 // checkpointCount);
331 }
332 uint32_t freePages() {
333 u32 fp = 0;
334 sqlite3BtreeGetMeta(btree, BTREE_FREE_PAGE_COUNT, &fp);
335 return fp;
336 }
337 bool vacuum() { // Returns true if vacuum is complete or stalled by a lazy free root
338 int rc = sqlite3BtreeIncrVacuum(btree);
339 if (rc && rc != SQLITE_DONE)

Callers 2

checkFreePagesFunction · 0.80

Calls 1

sqlite3BtreeGetMetaFunction · 0.85

Tested by

no test coverage detected