HDFS-12212. Options.Rename.To_TRASH is considered even when Options.Rename.NONE is specified. Contributed by Vinayakumar B.
This commit is contained in:
parent
0011136e66
commit
e44693953d
|
@ -663,7 +663,7 @@ public class ClientNamenodeProtocolServerSideTranslatorPB implements
|
|||
ArrayList<Rename> optionList = new ArrayList<Rename>();
|
||||
if(req.getOverwriteDest()) {
|
||||
optionList.add(Rename.OVERWRITE);
|
||||
} else if(req.hasMoveToTrash()) {
|
||||
} else if(req.hasMoveToTrash() && req.getMoveToTrash()) {
|
||||
optionList.add(Rename.TO_TRASH);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue