}
if (max_conn && max_concurrent_jobs && max_concurrent_jobs > max_conn) {
Mmsg(mdb->errmsg,
- _("On db_name=%s, %s max_connections=%d is lower than Director "
- "MaxConcurentJobs=%d\n"),
- mdb->db_name, db_get_type(), max_conn, max_concurrent_jobs);
+ _("Potential performance problem:\n"
+ "max_connections=%d set for %s database \"%s\" should be larger than Director's "
+ "MaxConcurrentJobs=%d\n"),
+ max_conn, db_get_type(), mdb->db_name, max_concurrent_jobs);
Jmsg(jcr, M_WARNING, 0, "%s", mdb->errmsg);
ret = false;
}
}
/* Display a message if the db max_connections is too low */
- if (!db_check_max_connections(NULL, db, director->MaxConcurrentJobs+1)) {
+ if (!db_check_max_connections(NULL, db, director->MaxConcurrentJobs)) {
Pmsg1(000, "Warning, settings problem for Catalog=%s\n", catalog->name());
Pmsg1(000, "%s", db_strerror(db));
}