jstests/sharding/libs/zone_changes_util.js
/**
 * Updates the zone key range for the given namespace.
 */
Updates the zone key range for the given namespace.
Updates the zone key range for the given namespace .
function updateZoneKeyRange(st, ns, zoneName, fromRange, toRange) {
    assert.commandWorked(st.s.adminCommand(
        {updateZoneKeyRange: ns, min: fromRange[0], max: fromRange[1], zone: null}));
    assert.commandWorked(st.s.adminCommand(
        {updateZoneKeyRange: ns, min: toRange[0], max: toRange[1], zone: zoneName}));
}
function updateZoneKeyRange ( st , ns , zoneName , fromRange , toRange ) { assert . commandWorked ( st . s . adminCommand ( { updateZoneKeyRange : ns , min : fromRange [ 0 ] , max : fromRange [ 1 ] , zone : null } ) ) ; assert . commandWorked ( st . s . adminCommand ( { updateZoneKeyRange : ns , min : toRange [ 0 ] , max : toRange [ 1 ] , zone : zoneName } ) ) ; }
Updates the zone key range for the given namespace.
Updates the zone key range for the given namespace .