MCPcopy Create free account
hub / github.com/Tencent/phxsql / GetFileInstanceID

Method GetFileInstanceID

phxbinlogsvr/core/storage/storage_file_manager.cpp:365–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365uint64_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
374void StorageFileManager::RemoveFile(const std::string &file_name) {
375 auto it = file_list_.find(file_name);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected