jstests/libs/read_write_concern_defaults_propagation_common.js
/**
     * Asserts eventually all given nodes have no default RWC in their in-memory cache.
     */
Asserts eventually all given nodes have no default RWC in their in-memory cache.
Asserts eventually all given nodes have no default RWC in their in - memory cache .
function verifyPropgationOfNoDefaults(checkConns) {
        assert.soon(() => checkConns.every(checkConn => {
            const defaultsRes = assert.commandWorked(
                checkConn.adminCommand({getDefaultRWConcern: 1, inMemory: true}));
            const unexpectedFields = kDefaultRWCFields.concat(kExtraSetFields).filter(field => {
                return (field !== kDefaultWriteConcernField) && field !== kDefaultReadConcernField;
            });
            return unexpectedFields.every(field => !defaultsRes.hasOwnProperty(field));
        }),
                    "deleted/dropped defaults failed to propagate to all nodes within " +
                        timeoutSecs + " secs. checkConns: " + tojson(checkConns),
                    timeoutSecs * 1000,
                    intervalSecs * 1000,
                    {runHangAnalyzer: false});
    }
function verifyPropgationOfNoDefaults ( checkConns ) { assert . soon ( ( ) => checkConns . every ( checkConn => { const defaultsRes = assert . commandWorked ( checkConn . adminCommand ( { getDefaultRWConcern : 1 , inMemory : true } ) ) ; const unexpectedFields = kDefaultRWCFields . concat ( kExtraSetFields ) . filter ( field => { return ( field !== kDefaultWriteConcernField ) && field !== kDefaultReadConcernField ; } ) ; return unexpectedFields . every ( field => ! defaultsRes . hasOwnProperty ( field ) ) ; } ) , "deleted/dropped defaults failed to propagate to all nodes within " + timeoutSecs + " secs. checkConns: " + tojson ( checkConns ) , timeoutSecs * 1000 , intervalSecs * 1000 , { runHangAnalyzer : false } ) ; }
Asserts eventually all given nodes have no default RWC in their in-memory cache.
Asserts eventually all given nodes have no default RWC in their in - memory cache .
// Note localUpdateWallClockTime is generated by the in-memory cache, so it will be // present even if there are no defaults.