Allow shard key fields to contain DBRefs

XMLWordPrintableJSON

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

      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
              Reporter:
              Cheahuychou Mao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: