DB.createCollection method doesn't create an empty collection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.10.1
    • Component/s: API
    • None
    • Environment:
      Windows XP 32-Bit
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The below method,
      DBCollection com.mongodb.DB.createCollection(String arg0, DBObject arg1)

      doesn't create a new empty collection using java.

      However, from the mongo shell, this command creates an empty collection.

            Assignee:
            Unassigned
            Reporter:
            Mukul Sharma
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: