jstests/sharding/compound_hashed_shard_key_targeting.js
/**
 * Enables profiling on both shards so that we can verify the targeting behaviour.
 */
Enables profiling on both shards so that we can verify the targeting behaviour.
Enables profiling on both shards so that we can verify the targeting behaviour .
function restartProfiling() {
    for (let shardDB of [shard0DB, shard1DB]) {
        shardDB.setProfilingLevel(0);
        shardDB.system.profile.drop();
        shardDB.setProfilingLevel(2);
    }
}
function restartProfiling ( ) { for ( let shardDB of [ shard0DB , shard1DB ] ) { shardDB . setProfilingLevel ( 0 ) ; shardDB . system . profile . drop ( ) ; shardDB . setProfilingLevel ( 2 ) ; } }
Enables profiling on both shards so that we can verify the targeting behaviour.
Enables profiling on both shards so that we can verify the targeting behaviour .