mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
🐞 fix(datanode): fix print connection log panic.
Signed-off-by: Victor1319 <834863182@qq.com>
This commit is contained in:
parent
1437f1fb3e
commit
8cf8eb18c9
@ -402,7 +402,7 @@ func (rp *ReplProtocol) writeResponse(reply *Packet) {
|
||||
defer func() {
|
||||
reply.clean()
|
||||
}()
|
||||
log.LogDebugf("writeResponse.opcode %v reply %v conn(%v)", reply.Opcode, reply.GetUniqueLogId(), rp.sourceConn)
|
||||
log.LogDebugf("writeResponse.opcode %v reply %v conn(%v)", reply.Opcode, reply.GetUniqueLogId(), rp.sourceConn.RemoteAddr().String())
|
||||
if reply.IsErrPacket() {
|
||||
err = fmt.Errorf(reply.LogMessage(ActionWriteToClient, rp.sourceConn.RemoteAddr().String(),
|
||||
reply.StartT, fmt.Errorf(string(reply.Data[:reply.Size]))))
|
||||
@ -413,7 +413,7 @@ func (rp *ReplProtocol) writeResponse(reply *Packet) {
|
||||
}
|
||||
rp.Stop()
|
||||
}
|
||||
log.LogDebugf("try rsp opcode %v %v %v", rp.replId, reply.Opcode, rp.sourceConn)
|
||||
log.LogDebugf("try rsp opcode %v %v %v", rp.replId, reply.Opcode, rp.sourceConn.RemoteAddr().String())
|
||||
// execute the post-processing function
|
||||
rp.postFunc(reply)
|
||||
if !reply.NeedReply {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user