init_job_server(director->MaxConcurrentJobs);
- dbg_jcr_add_hook(_dbg_print_db); /* used to debug B_DB connexion after fatal signal */
+ dbg_jcr_add_hook(dbg_print_db); /* used to debug B_DB connexion after fatal signal */
// init_device_resources();
OK = false;
continue;
}
+
+ /* Display a message if the db max_connections is too low */
+ if (!db_check_max_connections(NULL, db, director->MaxConcurrentJobs+1)) {
+ Pmsg1(000, "Warning, settings problem for Catalog=%s\n", catalog->name());
+ Pmsg1(000, "%s", db_strerror(db));
+ }
/* we are in testing mode, so don't touch anything in the catalog */
if (mode == CHECK_CONNECTION) {
if (mode == UPDATE_AND_FIX) {
db_sql_query(db, cleanup_created_job, NULL, NULL);
db_sql_query(db, cleanup_running_job, NULL, NULL);
+ db_sql_query(db, "CREATE INDEX basefiles_jobid_idx ON BaseFiles ( JobId )" , NULL, NULL);
}
db_close_database(NULL, db);