| 2152 | } |
| 2153 | |
| 2154 | std::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 | |
| 2167 | void TableImpl::DumpPerfCounterLogDelay() { |
| 2168 | DoDumpPerfCounterLog(); |
nothing calls this directly
no test coverage detected