MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getFileSize

Method getFileSize

test/transaction/wal_test.cpp:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 uint64_t getFileSize(const FileInfo& fileInfo) const override {
128 std::unique_lock lck{mtx};
129 const auto file = files.find(fileInfo.path);
130 return file == files.end() ? 0 : file->second.size();
131 }
132
133private:
134 bool failSync;

Callers 2

mainFunction · 0.45
processRunCommandsFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected