Skip to content

Commit

Permalink
meta/kv: fix stat when unlink an opend file
Browse files Browse the repository at this point in the history
Signed-off-by: jiefenghuang <[email protected]>
  • Loading branch information
jiefenghuang committed Dec 31, 2024
1 parent beaa0d0 commit d339f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/tkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -1891,8 +1891,8 @@ func (m *kvMeta) doDeleteSustainedInode(sid uint64, inode Ino) error {
if a == nil {
return nil
}
newSpace = -align4K(attr.Length)
m.parseAttr(a, &attr)
newSpace = -align4K(attr.Length)
tx.set(m.delfileKey(inode, attr.Length), m.packInt64(time.Now().Unix()))
tx.delete(m.inodeKey(inode))
tx.delete(m.sustainedKey(sid, inode))
Expand Down

0 comments on commit d339f15

Please sign in to comment.