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

Method GetWriteFileInfo

phxbinlogsvr/core/storage/storage_file_manager.cpp:340–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void StorageFileManager::GetWriteFileInfo(EventDataInfo *data_info) {
341 pair < string, size_t > file_info = write_storage_->GetFileInfo();
342
343 data_info->set_file_name(file_info.first);
344 data_info->set_offset(file_info.second);
345}
346
347string StorageFileManager::GenFileName(const uint64_t &instanceid) {
348 char tmp[128];

Callers 1

CheckAndSwitchFileMethod · 0.80

Calls 1

GetFileInfoMethod · 0.80

Tested by

no test coverage detected