mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
refactor(metanode): hybrid cloud remove unnecessary code
Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
c296833d8e
commit
f97367ad20
@ -1138,14 +1138,6 @@ func (mp *metaPartition) UpdateExtentKeyAfterMigration(req *proto.UpdateExtentKe
|
||||
}
|
||||
}()
|
||||
|
||||
if !proto.IsStorageClassReplica(ino.StorageClass) && req.NewObjExtentKeys == nil {
|
||||
err = fmt.Errorf("mp %v inode %v new extentKey for storageClass %v can not be nil",
|
||||
mp.config.PartitionId, ino.Inode, req.StorageClass)
|
||||
log.LogErrorf("action[UpdateExtentKeyAfterMigration] %v", err)
|
||||
p.PacketErrorWithBody(proto.OpErr, []byte(err.Error()))
|
||||
return
|
||||
}
|
||||
|
||||
if atomic.LoadUint32(&ino.ForbiddenMigration) == ForbiddenToMigration {
|
||||
err = fmt.Errorf("mp %v inode %v is forbidden to migration", mp.config.PartitionId, ino.Inode)
|
||||
log.LogErrorf("action[UpdateExtentKeyAfterMigration] %v", err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user