jstests/sharding/zone_changes_hashed.js
/**
 * Returns the highest chunk bounds out of the given chunk bounds. Assumes that the
 * chunks do not overlap.
 */
Returns the highest chunk bounds out of the given chunk bounds. Assumes that the
chunks do not overlap.
Returns the highest chunk bounds out of the given chunk bounds . Assumes that the chunks do not overlap .
function findHighestChunkBounds(chunkBounds) {
    let highestBounds = chunkBounds[0];
    for (let i = 1; i < chunkBounds.length; i++) {
        if (chunkBoundsUtil.lt(highestBounds, chunkBounds[i])) {
            highestBounds = chunkBounds[i];
        }
    }
    return highestBounds;
}
function findHighestChunkBounds ( chunkBounds ) { let highestBounds = chunkBounds [ 0 ] ; for ( let i = 1 ; i < chunkBounds . length ; i ++ ) { if ( chunkBoundsUtil . lt ( highestBounds , chunkBounds [ i ] ) ) { highestBounds = chunkBounds [ i ] ; } } return highestBounds ; }
Returns the highest chunk bounds out of the given chunk bounds.
Returns the highest chunk bounds out of the given chunk bounds .