HDFS-10841. Remove duplicate or unused variable in appendFile(). Contributed by Kihwal Lee.
(cherry picked from commitf6c0b7543f
) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAppendOp.java (cherry picked from commit3025992bd3
)
This commit is contained in:
parent
56340ac029
commit
e84b5c5e3e
|
@ -84,12 +84,10 @@ final class FSDirAppendOp {
|
|||
|
||||
final LocatedBlock lb;
|
||||
final FSDirectory fsd = fsn.getFSDirectory();
|
||||
final String src;
|
||||
final INodesInPath iip;
|
||||
fsd.writeLock();
|
||||
try {
|
||||
iip = fsd.resolvePathForWrite(pc, srcArg);
|
||||
src = iip.getPath();
|
||||
// Verify that the destination does not exist as a directory already
|
||||
final INode inode = iip.getLastINode();
|
||||
final String path = iip.getPath();
|
||||
|
|
Loading…
Reference in New Issue