Apologies for the prescriptive solution. matthew.russotto@mongodb.com agreed in thinking this would be the most straight-forward change.
Here's an example of a minvalid check that can happen during initial sync which evaluates the wrong result.
This was found via an unrelated test failure.
- related to
-
SERVER-73661 Improve applyOperation_inlock() API.
- Backlog