Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11051

listDatabases command reports existence of databases that have never been written to.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • ALL

      If a client accesses a non-existent database by reading it, a side-effect of that action is to cause listDatabases to believe in its existence. Further, listDatabases reports its sizeOnDisk as 1 byte, but sets the "empty" flag to true. This is confusing. Non-existent databases should not appear in listDatabases, even if someone attempted to read from it. Should they appear, they certainly shouldn't be reported as having a size on disk, when they have no associated files.

            Assignee:
            Unassigned Unassigned
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: