mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(client): if follower read is enabled, try other hosts when triggering OpNotExistErr
close:#1000078338 Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
4a38fa1418
commit
42e6bd21da
@ -130,9 +130,10 @@ func (reader *ExtentReader) checkStreamReply(request *Packet, reply *Packet) (er
|
||||
return TryOtherAddrError
|
||||
}
|
||||
|
||||
if reply.ResultCode == proto.OpNotExistErr {
|
||||
return ExtentNotFoundError
|
||||
}
|
||||
// if follower read is enabled, try other hosts when triggering OpNotExistErr
|
||||
// if reply.ResultCode == proto.OpNotExistErr {
|
||||
// return ExtentNotFoundError
|
||||
// }
|
||||
|
||||
if reply.ResultCode != proto.OpOk {
|
||||
if request.Opcode == proto.OpStreamFollowerRead && reply.ResultCode != proto.OpForbidErr {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user