[SERVER-2477] Shell is displaying some numbers in a collection as NumberLong("4187327222") and others as NumberLong(2109107744) Created: 04/Feb/11  Updated: 01/Jul/16  Resolved: 04/Feb/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.7.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ryan Nitz Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-24802 Database store a value different to t... Closed
Operating System: ALL
Participants:

 Description   

I'm not sure if this is a display bug or something else.

This works fine:

var doc = db.data.rrd.findOne(

{cid: ObjectId('XXX'), g: 'opcounters', i: 'query', d: '20110203', hid : 'YYY'}

,

{'mn.1330.t': 1}

);
print(doc.mn['1330'].t + 1);

E.g.

"1406" :

{ "n" : 2, "t" : NumberLong("4209660892") }

,
"1407" :

{ "n" : 1, "t" : NumberLong(2104973521) }

 Comments   
Comment by Eliot Horowitz (Inactive) [ 04/Feb/11 ]

This is as designed.
For large numbers it has to be a string or it won't parse.
For low numbers we use integers so its faster to parse.

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