create generic flag on OperationShardingState to prevent accessing sharded namespaces

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.5.6
    • Component/s: Sharding
    • Sharding
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It can currently be done by setting a shardVersion on some dummy namespace to "UNSHARDED", because OperationShardingState::getShardVersion(const NamespaceString& nss) returns version UNSHARDED if the namespace requested does not match the one set.

      It would be nice not to rely on this trick, and instead have an explicit way of ensuring an operation is unsharded.

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Esha Maharishi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: