jstests/libs/database_versioning.js
// Provides methods for inspecting the in-memory and on-disk database caches on shard nodes.
Provides methods for inspecting the in-memory and on-disk database caches on shard nodes.
Provides methods for inspecting the in - memory and on - disk database caches on shard nodes .
function checkInMemoryDatabaseVersion(conn, dbName, expectedVersion) {
    const res = conn.adminCommand({getDatabaseVersion: dbName});
    assert.commandWorked(res);
    assert.docEq(res.dbVersion,
                 expectedVersion,
                 conn + " did not have expected in-memory database version for " + dbName);
}
function checkInMemoryDatabaseVersion ( conn , dbName , expectedVersion ) { const res = conn . adminCommand ( { getDatabaseVersion : dbName } ) ; assert . commandWorked ( res ) ; assert . docEq ( res . dbVersion , expectedVersion , conn + " did not have expected in-memory database version for " + dbName ) ; }
Provides methods for inspecting the in-memory and on-disk database caches on shard nodes.
Provides methods for inspecting the in - memory and on - disk database caches on shard nodes .