[SERVER-654] $push allows BSON object to exceed 4MB Created: 22/Feb/10 Updated: 12/Jul/16 Resolved: 23/Feb/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.3.2 |
| Fix Version/s: | 1.3.3 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Yun Huang Yong | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Growing an object size through the use of $push doesn't trigger the 4MB object limit error. JS shell session that creates an object of 5MB, by $push ing 1MB strings onto an array: > s = "x" ) |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 23/Feb/10 ] |
|
not quite - there are a few places its a bit different for now |
| Comment by Yun Huang Yong [ 23/Feb/10 ] |
|
Would it be tidier to MaxBSONObjectSize from db.h instead of the magic number? |
| Comment by auto [ 23/Feb/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: check that objects modified with $ operators are <= 4mb |