empty tag sets [{}] asserts with primary read preference

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.4.0-rc1
    • Affects Version/s: None
    • Component/s: Internal Client
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In jsTests, with a ReplicaSetConnection:

      conn.setReadPref("primary", [{}]);
      

      ... always results in:

      Thu Jan 17 16:51:38.864 javascript execution failed src/mongo/shell/query.js:78 socket error on query
      this._cursor = this._mongo.find( this._ns , this._query , this._fields , this.
      

      [{}] should be treated the same as null, but apparently it's treated some other way.

            Assignee:
            Randolph Tan
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: