MCPcopy Create free account
hub / github.com/baidu/tera / ToString

Method ToString

src/leveldb/persistent_cache/persistent_cache_impl.cc:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using PersistentCacheMetricNames::kMetaDataSize;
27
28std::string PersistentCacheConfig::ToString() const {
29 std::string ret;
30 ret.reserve(20000);
31 const int kBufferSize = 200;
32 char buffer[kBufferSize];
33
34 snprintf(buffer, kBufferSize, " path: %s\n", path.c_str());
35 ret.append(buffer);
36 snprintf(buffer, kBufferSize, " use_direct_reads: %d\n", env_opt.use_direct_io_read);
37 ret.append(buffer);
38 snprintf(buffer, kBufferSize, " use_direct_writes: %d\n", env_opt.use_direct_io_write);
39 ret.append(buffer);
40 snprintf(buffer, kBufferSize, " cache_size: %lu\n", cache_size);
41 ret.append(buffer);
42
43 return ret;
44}
45
46bool PersistentCacheImpl::IsCacheFile(const std::string& file) {
47 // check if the file has .rc suffix

Callers 15

CollectLgFilesFunction · 0.45
CollectTabletFilesFunction · 0.45
CollectTableFilesFunction · 0.45
AddExistingFileMethod · 0.45
PullEnvFlashFilesMethod · 0.45
OpenImplMethod · 0.45
ReadMethod · 0.45
CreateMethod · 0.45
CloseMethod · 0.45
ReadMethod · 0.45
ForceEvictMethod · 0.45
InsertCallbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected