jstests/noPassthrough/libs/index_build.js
/**
     * Asserts that the temporary directory for the persisted Sorter data is empty.
     */
Asserts that the temporary directory for the persisted Sorter data is empty.
Asserts that the temporary directory for the persisted Sorter data is empty .
static checkTempDirectoryCleared(primary) {
        const tempDir = primary.dbpath + "/_tmp";
        if (!fileExists(tempDir))
            return;
        const files = listFiles(tempDir);
        assert.eq(files.length, 0, files);
    }
static checkTempDirectoryCleared ( primary ) { const tempDir = primary . dbpath + "/_tmp" ; if ( ! fileExists ( tempDir ) ) return ; const files = listFiles ( tempDir ) ; assert . eq ( files . length , 0 , files ) ; }
Asserts that the temporary directory for the persisted Sorter data is empty.
Asserts that the temporary directory for the persisted Sorter data is empty .
// If the index build was interrupted for shutdown before anything was inserted into // the Sorter, the temp directory may not exist. // Ensure that the persisted Sorter data was cleaned up after failing to resume.