You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Li Lu (JIRA)" <ji...@apache.org> on 2014/11/04 22:04:35 UTC

[jira] [Assigned] (HDFS-7356) Use DirectoryListing.hasMore() directly in nfs

     [ https://issues.apache.org/jira/browse/HDFS-7356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Li Lu reassigned HDFS-7356:
---------------------------

    Assignee: Li Lu

> Use DirectoryListing.hasMore() directly in nfs
> ----------------------------------------------
>
>                 Key: HDFS-7356
>                 URL: https://issues.apache.org/jira/browse/HDFS-7356
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>            Assignee: Li Lu
>            Priority: Minor
>
> In NFS the following code path can be simplified using {{DirectoryListing.hasMore()}}:
> {code}
>     boolean eof = (n < fstatus.length) ? false : (dlisting
>         .getRemainingEntries() == 0);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)