Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-1444

listDBs() doesn't work on MongoDB 3.0.x on secondaries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      vagrant@precise64:~/enterprise$ php -dextension=/usr/lib/php5/20090626/mongo.so -r '$m = new MongoClient("localhost:2422"); var_dump($m->listDBs());'
      array(3) {
        ["databases"]=>
        array(1) {
          [0]=>
          array(3) {
            ["name"]=>
            string(5) "local"
            ["sizeOnDisk"]=>
            float(54525952)
            ["empty"]=>
            bool(false)
          }
        }
        ["totalSize"]=>
        float(54525952)
        ["ok"]=>
        float(1)
      }
      

      vagrant@precise64:~/enterprise$ php -dextension=/usr/lib/php5/20090626/mongo.so -r '$m = new MongoClient("localhost:3022"); var_dump($m->listDBs());'
      array(3) {
        ["note"]=>
        string(16) "from execCommand"
        ["ok"]=>
        float(0)
        ["errmsg"]=>
        string(10) "not master"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  3 years, 27 weeks, 5 days ago
                  Date of 1st Reply: