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

Method getStorageBytes

fdbserver/KeyValueStoreSQLite.actor.cpp:2188–2195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188StorageBytes KeyValueStoreSQLite::getStorageBytes() const {
2189 int64_t free;
2190 int64_t total;
2191
2192 g_network->getDiskBytes(parentDirectory(filename), free, total);
2193
2194 return StorageBytes(free, total, diskBytesUsed, free + _PAGE_SIZE * freeListPages);
2195}
2196
2197void KeyValueStoreSQLite::startReadThreads() {
2198 int nReadThreads = readCursors.size();

Callers 10

getQueuingMetricsFunction · 0.45
Future<Void> tLogCoreFunction · 0.45
getQueuingMetricsFunction · 0.45
Future<Void> tLogCoreFunction · 0.45
getQueuingMetricsFunction · 0.45
Future<Void> tLogCoreFunction · 0.45
sendCommitReplyFunction · 0.45
Future<Void> runIKVSFunction · 0.45
getQueuingMetricsFunction · 0.45
Future<Void> tLogCoreFunction · 0.45

Calls 3

StorageBytesClass · 0.85
parentDirectoryFunction · 0.50
getDiskBytesMethod · 0.45

Tested by

no test coverage detected