Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2931

mongodump skips documents with empty field names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 100.4.1
    • Component/s: common
    • Labels:
      None

      Description

      This was introduced in v100.4.0 as part of TOOLS-2921. It is not a problem with the Go Driver, but a mistake where we override the default filter for queries during DeferredQuery.Count(). Specifically we set the default filter to be:

      bson.D{{}} 

      Instead of:

      bson.D{} 

      This is setting the filter to: 

      {"": null} 

       

        Attachments

          Activity

            People

            Assignee:
            tim.fogarty Tim Fogarty
            Reporter:
            tim.fogarty Tim Fogarty
            Reviewers:
            Ryan Chipman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: