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

opsSharded no longer updated

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.3.2
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      mongos> use test
      switched to db test
      mongos> sh.enableSharding("test")

      { "ok" : 1 }

      mongos> sh.shardCollection("test.test",

      {"x":1}

      )

      { "collectionsharded" : "test.test", "ok" : 1 }

      mongos> db.serverStatus().ops
      {
      "sharded" :

      { "insert" : 0, "query" : 0, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 0 }

      ,
      "notSharded" :

      { "insert" : 0, "query" : 21, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 36 }

      }
      mongos> db.test.insert(

      {"x":1}

      )
      mongos> db.test.find()

      { "_id" : ObjectId("50aad6fe4cd32fd23efbd4cd"), "x" : 1 }

      mongos> db.serverStatus().ops
      {
      "sharded" :

      { "insert" : 0, "query" : 0, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 0 }

      ,
      "notSharded" :

      { "insert" : 0, "query" : 22, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 41 }

      }
      mongos>

      opsSharded was only used in one place, and that was taken out in: https://github.com/mongodb/mongo/commit/1973153321caf7483d0ff10913e196fa367d78f5#L3L125

            Assignee:
            sverch Shaun Verch
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: