Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2260

ismaster is slightly inconsistent with mongos and mongod

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

      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 Unassigned
            Reporter:
            niemeyer Gustavo Niemeyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: