Skip to content

Commit

Permalink
fix: without close file(#2301) (#2314)
Browse files Browse the repository at this point in the history
Co-authored-by: liuchengyu <liuchengyu@360.cn>
  • Loading branch information
chengyu-l and liuchengyu authored Jan 15, 2024
1 parent 7c689df commit 9ac8edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rsync_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Status RsyncClient::UpdateLocalMeta(const std::string& snapshot_uuid, const std:
std::string line = item.first + ":" + item.second + "\n";
file->Append(line);
}
s = file->Flush();
s = file->Close();
if (!s.ok()) {
LOG(WARNING) << "flush meta file failed, meta_file_path: " << meta_file_path;
return s;
Expand Down

0 comments on commit 9ac8edc

Please sign in to comment.