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

Method GetCookieFileName

src/sdk/table_impl.cc:2154–2165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2152}
2153
2154std::string TableImpl::GetCookieFileName(const std::string& tablename,
2155 const std::string& cluster_id, int64_t create_time) {
2156 uint32_t hash = 0;
2157 if (GetHashNumber(cluster_id, hash, &hash) != 0) {
2158 LOG(FATAL) << "invalid arguments";
2159 }
2160 char hash_str[9] = {'\0'};
2161 sprintf(hash_str, "%08x", hash);
2162 std::stringstream fname;
2163 fname << tablename << "-" << create_time << "-" << hash_str;
2164 return fname.str();
2165}
2166
2167void TableImpl::DumpPerfCounterLogDelay() {
2168 DoDumpPerfCounterLog();

Callers

nothing calls this directly

Calls 1

GetHashNumberFunction · 0.85

Tested by

no test coverage detected