MCPcopy Create free account
hub / github.com/facebook/CacheLib / setSimpleFile

Method setSimpleFile

cachelib/allocator/nvmcache/NavyConfig.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void NavyConfig::setSimpleFile(const std::string& fileName,
116 uint64_t fileSize,
117 bool truncateFile) {
118 if (usesRaidFiles()) {
119 throw std::invalid_argument("already set RAID files");
120 }
121 fileName_ = fileName;
122 fileSize_ = fileSize;
123 truncateFile_ = truncateFile;
124}
125
126void NavyConfig::setRaidFiles(std::vector<std::string> raidPaths,
127 uint64_t fileSize,

Callers 8

getNvmTestConfigFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
set_simple_fileFunction · 0.80
NewRocksCachelibWrapperFunction · 0.80
TEST_FFunction · 0.80
CacheMethod · 0.80

Calls

no outgoing calls

Tested by 5

getNvmTestConfigFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64