Skip to content

Commit

Permalink
fix(cmd): always print ok log when get full data file info failed (#2663
Browse files Browse the repository at this point in the history
)

Co-authored-by: yxj25245 <[email protected]>
Co-authored-by: hulk <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent 91b5478 commit e26c54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/cmd_replication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ class CommandFetchMeta : public Commander {
std::string files;
auto s = engine::Storage::ReplDataManager::GetFullReplDataInfo(srv->storage, &files);
if (!s.IsOK()) {
LOG(WARNING) << "[replication] Failed to get full data file info: " << s.Msg();
s = util::SockSend(repl_fd, redis::Error({Status::RedisErrorNoPrefix, "can't create db checkpoint"}), bev);
if (!s.IsOK()) {
LOG(WARNING) << "[replication] Failed to send error response: " << s.Msg();
}
LOG(WARNING) << "[replication] Failed to get full data file info: " << s.Msg();
return;
}
// Send full data file info
Expand Down

0 comments on commit e26c54a

Please sign in to comment.