| 363 | } |
| 364 | |
| 365 | uint64_t StorageFileManager::GetFileInstanceID(const string &file_name) { |
| 366 | uint64_t instanceid = 0; |
| 367 | if (file_name.empty()) |
| 368 | return instanceid; |
| 369 | |
| 370 | sscanf(file_name.c_str(), "%*[^-]-%lu", &instanceid); |
| 371 | return instanceid; |
| 372 | } |
| 373 | |
| 374 | void StorageFileManager::RemoveFile(const std::string &file_name) { |
| 375 | auto it = file_list_.find(file_name); |
nothing calls this directly
no outgoing calls
no test coverage detected