when saving file with gridfs, if the size is aligned with 256KB, then driver saves an extra chunk at the end with empty array

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      in GridFSInputFile.java, the loop creating chunks only ends when:
      ...
      if ( start < b.length )
      break;
      ...

      But it should also check if total == file length.
      Right now it does an extra loop.

            Assignee:
            Antoine Girbal (Inactive)
            Reporter:
            Antoine Girbal (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: