diff --git a/src/commands/cmd_replication.cc b/src/commands/cmd_replication.cc index 4d46e11d9ff..290b1261f5f 100644 --- a/src/commands/cmd_replication.cc +++ b/src/commands/cmd_replication.cc @@ -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