DaveTeng0 commented on code in PR #3810:
URL: https://github.com/apache/ozone/pull/3810#discussion_r1020998970
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java:
##########
@@ -450,7 +451,7 @@ private class DeleteIterator extends OzoneListingIterator {
throws IOException {
super(f);
this.recursive = recursive;
- if (getStatus().isDirectory()
+ if (getStatus().isDir()
Review Comment:
Yes! it's because Ozone uses a class called FileStatusAdapter, which is
similar with the class FileStatus in hdfs. The main difference is that
FileStatusAdapter class is built in with attribute of disk usage of file, which
we'll use in the 'du' command!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]