Skip to content

Commit

Permalink
Invalidate file stat cache when it is truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Aug 30, 2021
1 parent a0b3067 commit 2f87fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func (fs *FileSystem) TruncateFile(path string, size int64) error {
return err
}

fs.invalidateCachePath(util.GetIRODSPathDirname(irodsPath))
fs.invalidateCachePath(irodsPath)

return nil
}
Expand Down

0 comments on commit 2f87fdf

Please sign in to comment.