mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(metanode): hybrid cloud reset the flag of inode when migration ek is deleted
close:#21959956 Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
0fc7a908e0
commit
d87bb469d4
@ -1153,9 +1153,13 @@ func (mp *metaPartition) internalDeleteInodeMigrationExtentKey(inoParam *Inode)
|
||||
return
|
||||
}
|
||||
ino := item.(*Inode)
|
||||
ino.Lock()
|
||||
defer ino.Unlock()
|
||||
ino.HybridCouldExtentsMigration.storageClass = proto.StorageClass_Unspecified
|
||||
ino.HybridCouldExtentsMigration.expiredTime = 0
|
||||
ino.HybridCouldExtentsMigration.sortedEks = nil
|
||||
// reset DeleteMigrationExtentKeyFlag for future deletion of inode
|
||||
ino.Flag ^= DeleteMigrationExtentKeyFlag
|
||||
log.LogDebugf("internalDeleteInodeMigrationExtentKey: partitionID(%v) inode(%v)",
|
||||
mp.config.PartitionId, inoParam.Inode)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user