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

GridFS.delete does not remove all chunks in PyMongo 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: