jstests/noPassthrough/libs/index_build.js
/**
     * Wait for index build to begin its collection scan phase and return its op id.
     */
Wait for index build to begin its collection scan phase and return its op id.
Wait for index build to begin its collection scan phase and return its op id .
static waitForIndexBuildToScanCollection(database, collectionName, indexName) {
        const filter = {
            progress: {$exists: true},
        };
        return IndexBuildTest.waitForIndexBuildToStart(database, collectionName, indexName, filter);
    }
static waitForIndexBuildToScanCollection ( database , collectionName , indexName ) { const filter = { progress : { $exists : true } , } ; return IndexBuildTest . waitForIndexBuildToStart ( database , collectionName , indexName , filter ) ; }
Wait for index build to begin its collection scan phase and return its op id.
Wait for index build to begin its collection scan phase and return its op id .
// The collection scan is the only phase of an index build that uses a progress meter. // Since the progress meter can be detected in the db.currentOp() output, we will use this // information to determine when we are scanning the collection during the index build.