SERVER-138126In Code Review
Re-key dbhash includeReplicatedRecordIds to the in-scope predicate
dbhash's opt-in {{rid}} hashing ([includeReplicatedRecordIds|https://github.com/10gen/mongo/blob/5fce3b99dea39b4f9453477819cedd935fba9a2c/src/mongo/db/commands/dbhash.cpp#L67]) currently keys on the per-collection recordIdsReplicated option. When the caller opts in with that flag, re-key the predicate to the shared in-scope predicate, so the cross-node rid-match oracle actually includes {{rids}} once the per-collection option stops being written. h2. Details - Without this, the opt-in predi