Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
Before supporting rename with snapshots, when adding/remove a child inode to/from a directory, if the directory is already an INodeDirectoryWithSnapshot, we can directly record the change in the corresponding snapshot diff.
After support rename with snapshots, an INodeDirectoryWithSnapshot may be a renamed node, thus we should use INode#isInLatestSnapshot() to check if we should record the change in snapshots.