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

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.