mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
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:
parent
5c7898354f
commit
25074c5d0c
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user