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

Method OpenNewWriteFile

phxbinlogsvr/core/storage/storage_file_manager.cpp:157–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157int StorageFileManager::OpenNewWriteFile(const uint64_t &instanceid) {
158 return write_storage_->SetFileWritePos(GetNewFile(instanceid), 0);
159}
160
161int StorageFileManager::OpenOldestFile() {
162 if (file_list_.empty())

Callers

nothing calls this directly

Calls 1

SetFileWritePosMethod · 0.80

Tested by

no test coverage detected