jstests/replsets/drop_collections_two_phase_rename_drop_target.js
// Assumes all indexes in the collection fit in the first batch of results.
Assumes all indexes in the collection fit in the first batch of results.
Assumes all indexes in the collection fit in the first batch of results .
function listIndexes(database, coll, args) {
    args = args || {};
    let failMsg = "'listIndexes' command failed";
    let listIndexesCmd = {listIndexes: coll};
    let res = assert.commandWorked(database.runCommand(listIndexesCmd, args), failMsg);
    return res.cursor.firstBatch;
}
function listIndexes ( database , coll , args ) { args = args || { } ; let failMsg = "'listIndexes' command failed" ; let listIndexesCmd = { listIndexes : coll } ; let res = assert . commandWorked ( database . runCommand ( listIndexesCmd , args ) , failMsg ) ; return res . cursor . firstBatch ; }
Assumes all indexes in the collection fit in the first batch of results.
Assumes all indexes in the collection fit in the first batch of results .