[SERVER-565] NumberLong breaks dataSize Created: 22/Jan/10  Updated: 12/Jul/16  Resolved: 25/Jan/10

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 1.3.2

Type: Bug Priority: Major - P3
Reporter: Michael Dirolf Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-357 make LongNumber class for javascript Closed
Participants:

 Description   

In particular totalIndexSize - which works by getting dataSize for each index and adding them to 0. Seems like this gets implicitly converted to a string append w/ the new NumberLong type. See this example:
http://mongodb.pastebin.com/d7bdea29f

Instead of ending up with 8192 * 3, we get 0819281928192.


Generated at Thu Feb 08 02:54:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.