Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-900

GridFS.delete does not remove all chunks in PyMongo 3

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.1
    • Affects Version/s: 3.0
    • Component/s: 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@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: