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

Method GetNextReadFile

phxbinlogsvr/core/storage/storage_file_manager.cpp:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int StorageFileManager::GetNextReadFile() {
134 auto it = file_list_.find(read_storage_->GetFileName());
135 if (it == file_list_.end())
136 return NO_FILES;
137
138 ++it;
139 if (it == file_list_.end())
140 return NO_FILES;
141
142 return read_storage_->ReOpen(*it);
143}
144
145int StorageFileManager::GetPreReadFile() {
146 auto it = file_list_.find(read_storage_->GetFileName());

Callers

nothing calls this directly

Calls 2

GetFileNameMethod · 0.80
ReOpenMethod · 0.80

Tested by

no test coverage detected