The `maxlag` parameter is only enforced during monitor action on the master. It must be checked during the election process against the last known LSN from the master before its crash.