[SERVER-8115] db.printCollectionStats with scale will print errors repeatedly when running with an int <= 0 or a non-numeric value Created: 09/Jan/13  Updated: 11/Jul/16  Resolved: 14/Jan/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.4.0-rc0

Type: Improvement Priority: Major - P3
Reporter: David Hows Assignee: David Hows
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Participants:

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



 Comments   
Comment by Ian Whalen (Inactive) [ 14/Jan/13 ]

https://github.com/mongodb/mongo/commit/03b80fb81feb076a618b275825f1c662bba9237d

Generated at Thu Feb 08 03:16:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.