ismaster is slightly inconsistent with mongos and mongod

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.4
    • Affects Version/s: 1.7.4
    • Component/s: Sharding
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In a mongod:

      > db.runCommand("ismaster")

      { "ismaster" : true, "maxBsonObjectSize" : 16777216, "ok" : 1 }

      In a mongos:

      > db.runCommand("ismaster")
      {
      "ismaster" : 1,
      "msg" : "isdbgrid",
      "maxBsonObjectSize" : 16777216,
      "ok" : 1
      }

      Note the value of "ismaster": 1 vs. true.

      Should be trivial to fix, and not a big deal, but it may easily lead to broken code which inadvertently does a normal "== true" or similar.

              Assignee:
              Unassigned
              Reporter:
              Gustavo Niemeyer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: