Description
Currently doing an $or([
{key1: A1,key2: B1},
{key1:A2,key2:B2},...] fails in a sharded cluster because it does not first check if the values given are on the same shard, whereas $in does check. They should be consistent and do the best to implement findAndModify within one shard. The below steps to reproduce shows the differences.
Attachments
Issue Links
- duplicates
-
SERVER-30225 Sharded writes should extract shard key when it is in every branch of an $or
-
- Backlog
-