]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix SQL warning message about concurrency pointed out by Graham
authorKern Sibbald <kern@sibbald.com>
Wed, 31 Mar 2010 17:20:43 +0000 (19:20 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:42 +0000 (16:49 +0200)
bacula/src/cats/sql.c
bacula/src/dird/dird.c

index 8b910a1fba507f210c554d52d2600fd5d275c8ad..54e4671c69e3c338af675a68ce4c7d85d60f43ae 100644 (file)
@@ -201,9 +201,10 @@ bool db_check_max_connections(JCR *jcr, B_DB *mdb, uint32_t max_concurrent_jobs)
    }
    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;
    }
index a34fe4a933099abc954a11211bb63881864a03f4..493bff07f3120097905c3b0852ddbdb6c6fa1a01 100644 (file)
@@ -960,7 +960,7 @@ static bool check_catalog(cat_op mode)
       }
       
       /* 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));
       }