node_modules/mongoose/node_modules/mongodb/lib/sdam/common.js
/** Shared function to determine clusterTime for a given topology or session */
Shared function to determine clusterTime for a given topology or session
Shared function to determine clusterTime for a given topology or session
function _advanceClusterTime(entity, $clusterTime) {
    if (entity.clusterTime == null) {
        entity.clusterTime = $clusterTime;
    }
    else {
        if ($clusterTime.clusterTime.greaterThan(entity.clusterTime.clusterTime)) {
            entity.clusterTime = $clusterTime;
        }
    }
}
function _advanceClusterTime ( entity , $clusterTime ) { if ( entity . clusterTime == null ) { entity . clusterTime = $clusterTime ; } else { if ( $clusterTime . clusterTime . greaterThan ( entity . clusterTime . clusterTime ) ) { entity . clusterTime = $clusterTime ; } } }
Shared function to determine clusterTime for a given topology or session
Shared function to determine clusterTime for a given topology or session