hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-6787) Remove duplicate code in FSDirectory#unprotectedConcat
Date Wed, 30 Jul 2014 12:32:38 GMT
Yi Liu created HDFS-6787:

             Summary: Remove duplicate code in FSDirectory#unprotectedConcat
                 Key: HDFS-6787
                 URL: https://issues.apache.org/jira/browse/HDFS-6787
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: namenode
    Affects Versions: 3.0.0
            Reporter: Yi Liu
            Assignee: Yi Liu
         Attachments: HDFS-6787.001.patch

// update inodeMap
this snippet of code is duplicate, since we already have the logic above it:
    for(INodeFile nodeToRemove: allSrcInodes) {
      if(nodeToRemove == null) continue;
      trgParent.removeChild(nodeToRemove, trgLatestSnapshot);

This message was sent by Atlassian JIRA

View raw message