[SERVER-19930] DBRef Order Created: 13/Aug/15  Updated: 14/Aug/15  Resolved: 14/Aug/15

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

Type: Question Priority: Major - P3
Reporter: Ben Squire Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2015-08-13 at 17.11.12.png    
Participants:

 Description   

We have a 2.4 system thats recently been upgraded to 2.6 and then 3. Everything appeared to be working, until we saw this message:

Found $db field without a $id before it, which is invalid.

A quick google found this code:

https://github.com/mongodb/mongo/blob/master/src/mongo/db/exec/update.cpp#L98

and a quick look in our DB reveals the order is incorrect (see attachment). This isn't something we've done (we use Doctrine). However how can we easily fix this problem? We potentially have 1000s of DBRefs in the wrong order.

Thanks for your help,
Ben



 Comments   
Comment by Ramon Fernandez Marina [ 14/Aug/15 ]

Thanks for your report bensquire. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

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