| 18 | const std::string& fname); |
| 19 | |
| 20 | static std::string MakeFileName(const std::string& dbname, uint64_t number, |
| 21 | const char* suffix) { |
| 22 | char buf[100]; |
| 23 | snprintf(buf, sizeof(buf), "/%06llu.%s", |
| 24 | static_cast<unsigned long long>(number), suffix); |
| 25 | return dbname + buf; |
| 26 | } |
| 27 | |
| 28 | std::string LogFileName(const std::string& dbname, uint64_t number) { |
| 29 | assert(number > 0); |
no outgoing calls
no test coverage detected