Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7356

Use DirectoryListing.hasMore() directly in nfs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • nfs
    • None
    • Reviewed

    Description

      In NFS the following code path can be simplified using DirectoryListing.hasMore():

          boolean eof = (n < fstatus.length) ? false : (dlisting
              .getRemainingEntries() == 0);
      

      Attachments

        Activity

          People

            gtcarrera9 Li Lu
            wheat9 Haohui Mai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: