[
https://issues.apache.org/jira/browse/HDFS-4806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao updated HDFS-4806:
----------------------------
Attachment: HDFS-4806.001.patch
Patch uploaded.
> For an INodeDirectoryWithSnapshot, use INode#isInLatestSnapshot() to check if
> the added/removed child should be recorded in snapshot diff
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-4806
> URL: https://issues.apache.org/jira/browse/HDFS-4806
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: datanode, namenode
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Attachments: HDFS-4806.001.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira