Mobile SE: Compact returns wrong error code on mobile

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.0
    • Storage Engines 2018-07-30
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Compact command on mobile fails with error code: 59, with message "no such command: 'compact'", as opposed to the proper error code: CommandNotSupported.

       

      Example code when run on storage to generate the error:

      db.runCommand({compact: "coll"});

       

            Assignee:
            Sulabh Mahajan
            Reporter:
            Sean Tao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: