GridFS.delete does not remove all chunks in PyMongo 3

XMLWordPrintableJSON

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

      Reported on mongodb-user. This is incorrect:

      https://github.com/mongodb/mongo-python-driver/blob/master/gridfs/__init__.py#L238-L239

      We should be using delete_one on self.__files and delete_many on self.__chunks. Sadly, a multi-chunk delete doesn't seem to be covered in the test suite.

              Assignee:
              Bernie Hackett
              Reporter:
              Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: