Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1219

GridFSBucketReadStream `doRead` does not honor chunk size

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.33
    • Fix Version/s: 3.2.4
    • Component/s: MongoDB 3.2
    • Labels:
      None

      Description

      gridfs-stream\download.js
      When using the GridFSBucket.openDownloadStream to read the data of the specified segment,for example, there is a file size of 2547447 bytes in the gridfs,the chunksize is 1024*1024,I use openDownloadStream(fileid,

      {start:1732608,end:1733632}

      ) want get 1024 bytes,but return 364544 bytes.I find the error came from function doRead,I fix it then it's ok.

        Attachments

          Activity

            People

            Assignee:
            katherine.walker Katherine Walker (Inactive)
            Reporter:
            sun sunsummit
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: