jstests/sharding/timeseries_sharding_admin_commands.js
// Check the zone range against the extended range saved in config.tags collection.
Check the zone range against the extended range saved in config.tags collection.
Check the zone range against the extended range saved in config . tags collection .
function assertRangeMatch(savedRange, paramRange) {
    Object.keys(paramRange).forEach(key => {
        assert.docEq(savedRange[key], paramRange[key]);
    });
    Object.keys(savedRange).forEach(key => {
        if (!paramRange.hasOwnProperty(key)) {
            assert.docEq(savedRange[key], MinKey);
        }
    });
}
function assertRangeMatch ( savedRange , paramRange ) { Object . keys ( paramRange ) . forEach ( key => { assert . docEq ( savedRange [ key ] , paramRange [ key ] ) ; } ) ; Object . keys ( savedRange ) . forEach ( key => { if ( ! paramRange . hasOwnProperty ( key ) ) { assert . docEq ( savedRange [ key ] , MinKey ) ; } } ) ; }
Check the zone range against the extended range saved in config.tags collection.
Check the zone range against the extended range saved in config . tags collection .
// Non-extended range key must match. // Extended range key must be MinKey.