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

db.printCollectionStats with scale will print errors repeatedly when running with an int <= 0 or a non-numeric value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.4.0-rc0
    • Shell
    • None
    • Fully Compatible

    Description

      db.printCollectionStats with scale will print errors repeatedly when running with an int <= 0 or a non-numeric value

      eg

      MongoDB 2.3.2-pre-> db.printCollectionStats(0)
      foo
      { "ns" : "test.foo", "ok" : 0, "errmsg" : "scale has to be > 0" }
      ---
      oplogr
      { "ns" : "test.oplogr", "ok" : 0, "errmsg" : "scale has to be > 0" }
      ---
      system.indexes
      { "ns" : "test.system.indexes", "ok" : 0, "errmsg" : "scale has to be > 0" }
      ---
      xs
      { "ns" : "test.xs", "ok" : 0, "errmsg" : "scale has to be > 0" }
      ---

      Attachments

        Activity

          People

            david.hows David Hows
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: