This change is primarily to unify the code for the KeysDirectClient across branches to make future changes and backports easier to do. The problem that affects the 4.0 branch is not relevant to future branches since the MMAPv1 engine is not supported. However, the existing code is incorrect and should be fixed.
- related to
SERVER-56937 upgradeSet() in multi_rs.js may lose authentication state while upgrading primary