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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc0
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Fully Compatible

      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" }
      ---
      

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

              Created:
              Updated:
              Resolved: