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

Function Writer

fdbserver/KeyValueStoreSQLite.actor.cpp:1750–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1748 bool checkIntegrityOnOpen;
1749
1750 explicit Writer(KeyValueStoreSQLite* kvs,
1751 bool isBtreeV2,
1752 bool checkAllChecksumsOnOpen,
1753 bool checkIntegrityOnOpen,
1754 volatile int64_t& writesComplete,
1755 volatile SpringCleaningStats& springCleaningStats,
1756 volatile int64_t& diskBytesUsed,
1757 volatile int64_t& freeListPages,
1758 UID dbgid,
1759 std::vector<Reference<ReadCursor>>* pReadThreads)
1760 : kvs(kvs), conn(kvs->filename, isBtreeV2, isBtreeV2), cursor(nullptr), commits(), setsThisCommit(),
1761 freeTableEmpty(false), writesComplete(writesComplete), springCleaningStats(springCleaningStats),
1762 diskBytesUsed(diskBytesUsed), freeListPages(freeListPages), dbgid(dbgid), readThreads(*pReadThreads),
1763 checkAllChecksumsOnOpen(checkAllChecksumsOnOpen), checkIntegrityOnOpen(checkIntegrityOnOpen) {}
1764 ~Writer() override {
1765 TraceEvent("KVWriterDestroying", dbgid).log();
1766 delete cursor;

Callers 2

toStringRefMethod · 0.50
makeTokenPartFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected