XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.1
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Unassigned
              Reporter:
              Ben Squire
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: