| 182 | } |
| 183 | |
| 184 | int StorageFileManager::OpenFileForWrite(const uint64_t &instanceid, const string &file_name) { |
| 185 | LogVerbose("%s files %s, instanceid %u", __func__, file_name.c_str(), instanceid); |
| 186 | if (file_name == "") { |
| 187 | ColorLogInfo("%s no files create one, instanceid %u", __func__, instanceid); |
| 188 | return write_storage_->ReOpen(GetNewFile(instanceid)); |
| 189 | } else { |
| 190 | return write_storage_->ReOpen(GetNewFile(file_name)); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | int StorageFileManager::ResetFile(const ::google::protobuf::Message &data, const string &file_name) { |
| 195 | LogVerbose("%s check file %s", __func__, file_name.c_str()); |
nothing calls this directly
no test coverage detected