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.
- is related to
-
SERVER-28792 make dropIndexes unversioned again
- Closed