jstests/multiVersion/genericSetFCVUsage/rsm_topology_change_fcv.js
/*
 * Returns a regex for the topology change log message for the given replica set where
 * all nodes have the given minWireVersion and maxWireVersion.
 */
Returns a regex for the topology change log message for the given replica set where
all nodes have the given minWireVersion and maxWireVersion.
Returns a regex for the topology change log message for the given replica set where all nodes have the given minWireVersion and maxWireVersion .
function makeTopologyChangeLogMsgRegex(rs, minWireVersion, maxWireVersion) {
    return new RegExp(
        `Topology Change.*${rs.name}` +
        `.*minWireVersion":${minWireVersion}.*maxWireVersion":${maxWireVersion}`.repeat(
            rs.nodes.length));
}
function makeTopologyChangeLogMsgRegex ( rs , minWireVersion , maxWireVersion ) { return new RegExp ( ` ${ rs . name } ` + ` ${ minWireVersion } ${ maxWireVersion } ` . repeat ( rs . nodes . length ) ) ; }
Returns a regex for the topology change log message for the given replica set where
 all nodes have the given minWireVersion and maxWireVersion.
Returns a regex for the topology change log message for the given replica set where all nodes have the given minWireVersion and maxWireVersion .