fix(metanode): return OpNotExistErr when inode does not exist in CheckQuota to not retry

Signed-off-by: BillXiang <xiangwencheng@gmail.com>
This commit is contained in:
BillXiang 2024-05-13 19:49:37 +08:00 committed by leonrayang
parent 5c7898354f
commit 25074c5d0c

View File

@ -42,7 +42,7 @@ func (mp *metaPartition) CheckQuota(inodeId uint64, p *Packet) (iParm *Inode, in
item := mp.inodeTree.Get(iParm)
if item == nil {
err = fmt.Errorf("inode[%v] not exist", iParm)
p.PacketErrorWithBody(proto.OpErr, []byte(err.Error()))
p.PacketErrorWithBody(proto.OpNotExistErr, []byte(err.Error()))
return
}
inode = item.(*Inode)