Skip to content

Commit

Permalink
minor fix: fix warning message (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpeye authored Oct 29, 2024
1 parent 719e8e2 commit 282cce4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ void TChecksumRangeActorCompanion::HandleChecksumResponse(
{
++CalculatedChecksumsCount;
auto* msg = ev->Get();
if (HasError(msg->Record.GetError())) {
const auto& error = msg->Record.GetError();
if (HasError(error)) {
LOG_WARN(ctx, TBlockStoreComponents::PARTITION,
"[%s] Checksum error %s",
Replicas[0].Name.c_str(),
FormatError(Error).c_str());
FormatError(error).c_str());

Error = msg->Record.GetError();
Error = error;
ChecksumDuration = ctx.Now() - ChecksumStartTs;
return;
}
Expand Down

0 comments on commit 282cce4

Please sign in to comment.