jstests/noPassthrough/currentop_query.js
// Drops and re-creates the sharded test collection.
Drops and re-creates the sharded test collection.
Drops and re - creates the sharded test collection .
function dropAndRecreateTestCollection() {
    assert(mongosColl.drop());
    assert.commandWorked(
        mongosDB.adminCommand({shardCollection: mongosColl.getFullName(), key: {_id: "hashed"}}));
}
function dropAndRecreateTestCollection ( ) { assert ( mongosColl . drop ( ) ) ; assert . commandWorked ( mongosDB . adminCommand ( { shardCollection : mongosColl . getFullName ( ) , key : { _id : "hashed" } } ) ) ; }
Drops and re-creates the sharded test collection.
Drops and re - creates the sharded test collection .