fix(metanode): hybrid cloud if storage class for inode is already the same

with request for UpdateExtentKeyAfterMigration, return nil

close:#22112938

Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
chihe 2024-04-29 16:01:28 +08:00 committed by AmazingChi
parent 309d89f1a3
commit cb588b1d42

View File

@ -1161,7 +1161,7 @@ func (mp *metaPartition) UpdateExtentKeyAfterMigration(req *proto.UpdateExtentKe
err = fmt.Errorf("inode(%v) storageClass(%v) is already the same with request storageClass",
ino.Inode, ino.StorageClass)
log.LogWarnf("[UpdateExtentKeyAfterMigration] %v", err.Error())
p.PacketErrorWithBody(proto.OpArgMismatchErr, []byte(err.Error()))
p.PacketErrorWithBody(proto.OpOk, []byte(err.Error()))
return
}