When we create GridFS object empty collection fs.chunks is generated. May be it is not right to do this in this step?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.1.1
    • Component/s: None
    • Environment:
      all
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When we create GridFS object empty collection fs.chunks is generated. May be it isn't right to do this in this step?

      import pymongo
      from gridfs import GridFS
      
      conn = pymongo.Connection()
      conn.drop_database("gridfs-test")
      
      print("Collections: " + str(conn["gridfs-test"].collection_names()))
      # Collections: []
      
      g = GridFS(conn["gridfs-test"], "fs")
      
      print("Collections: " + str(conn["gridfs-test"].collection_names()))
      # Collections: [u'system.indexes', u'fs.chunks']
      

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Uladzimir Mihura (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: