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

blocking for replication returns success with no replication configured

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.8
    • Affects Version/s: 1.4.4
    • Component/s: None
    • None
    • Environment:
      ubuntu 10.04.1, x86-64
    • ALL

      > db.printReplicationInfo()
      {
      "errmsg" : "local.oplog.$main, or its options, not found in system.namespaces collection (not --master?)"
      }

      > db.printSlaveReplicationInfo()
      local.sources is empty; is this db a --slave?

      > coll.insert({})
      > db.runCommand(

      { getlasterror: 1, w: 2, wtimeout: 3000 }

      )

      { "err" : null, "n" : 0, "ok" : 1 }

      The above should fail--it could not possibly have replicated to two servers since there is only one.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            nick@leippe.com Nick Leippe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: