Skip to content

Commit

Permalink
refactor to make restapi happy
Browse files Browse the repository at this point in the history
  • Loading branch information
madanadit committed May 3, 2017
1 parent 16e1884 commit a50b10a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -91,11 +91,11 @@ public DeleteOptions setAlluxioOnly(boolean alluxioOnly) {
} }


/** /**
* @param skipCheck whether to skip UFS sync check * @param unchecked whether to skip UFS sync check
* @return the updated options object * @return the updated options object
*/ */
public DeleteOptions skipCheck(boolean skipCheck) { public DeleteOptions setUnchecked(boolean unchecked) {
mUnchecked = skipCheck; mUnchecked = unchecked;
return this; return this;
} }


Expand Down
Expand Up @@ -52,7 +52,7 @@ public void fields() {


options.setRecursive(recursive); options.setRecursive(recursive);
options.setAlluxioOnly(alluxioOnly); options.setAlluxioOnly(alluxioOnly);
options.skipCheck(unchecked); options.setUnchecked(unchecked);
Assert.assertEquals(recursive, options.isRecursive()); Assert.assertEquals(recursive, options.isRecursive());
Assert.assertEquals(alluxioOnly, options.isAlluxioOnly()); Assert.assertEquals(alluxioOnly, options.isAlluxioOnly());
Assert.assertEquals(unchecked, options.isUnchecked()); Assert.assertEquals(unchecked, options.isUnchecked());
Expand Down
2 changes: 1 addition & 1 deletion shell/src/main/java/alluxio/shell/command/RmCommand.java
Expand Up @@ -67,7 +67,7 @@ protected void runCommand(AlluxioURI path, CommandLine cl) throws AlluxioExcepti


DeleteOptions options = DeleteOptions.defaults().setRecursive(recursive); DeleteOptions options = DeleteOptions.defaults().setRecursive(recursive);
if (cl.hasOption(REMOVE_UNCHECKED_OPTION_CHAR)) { if (cl.hasOption(REMOVE_UNCHECKED_OPTION_CHAR)) {
options.skipCheck(true); options.setUnchecked(true);
} }
mFileSystem.delete(path, options); mFileSystem.delete(path, options);
System.out.println(path + " has been removed"); System.out.println(path + " has been removed");
Expand Down

0 comments on commit a50b10a

Please sign in to comment.