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

Allow shard key fields to contain DBRefs

    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0, v4.4
    • Sharding NYC 2023-05-15

      SERVER-74124 introduced the code to disallow shard keys that contain parts that start with '$'. It turns out that check is too strict since it is valid to shard with a shard key with DBRefs (i.e. $id, $db and $ref).

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: