Skip to content

Commit

Permalink
fix: fix the error log
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Nov 8, 2024
1 parent be8cef5 commit c2dfd47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/internal_rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ func (s *internalRpcServer) Truncate(c context.Context, req *proto.TruncateReque
return nil, err
}

res, err2 := follower.Truncate(req)
res, truncateErr := follower.Truncate(req)
log.Warn(
"Truncate failed",
slog.Any("error", err),
slog.Any("error", truncateErr),
)
return res, err2
return res, truncateErr
}

func (s *internalRpcServer) Replicate(srv proto.OxiaLogReplication_ReplicateServer) error {
Expand Down

0 comments on commit c2dfd47

Please sign in to comment.