From: Eric Bollengier Date: Sun, 18 Oct 2015 09:35:37 +0000 (+0200) Subject: Enhance bvfs performance .bvfs_update for MySQL X-Git-Tag: Release-7.4.0~191 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4b18a6602ebbe104625034aea3a113ec00e8ce56;p=bacula%2Fbacula Enhance bvfs performance .bvfs_update for MySQL Bug reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737821 Conflicts: bacula/src/cats/bvfs.c --- diff --git a/bacula/src/cats/bvfs.c b/bacula/src/cats/bvfs.c index 1d4619d32e..403f063c8d 100644 --- a/bacula/src/cats/bvfs.c +++ b/bacula/src/cats/bvfs.c @@ -482,7 +482,7 @@ static int update_path_hierarchy_cache(JCR *jcr, "AND h.PPathId NOT IN (SELECT PathId FROM PathVisibility WHERE JobId=%s)", jobid, jobid, jobid ); - } else if (mdb->bdb_get_type_index() == SQL_TYPE_MYSQL) { + } else if (mdb->bdb_get_type_index() == SQL_TYPE_MYSQL) { Mmsg(mdb->cmd, "INSERT INTO PathVisibility (PathId, JobId) " "SELECT a.PathId,%s " @@ -494,7 +494,7 @@ static int update_path_hierarchy_cache(JCR *jcr, "LEFT JOIN PathVisibility AS b ON (b.JobId=%s and a.PathId = b.PathId) " "WHERE b.PathId IS NULL", jobid, jobid, jobid); - } else { /* TODO: Test the MYSQL Query with PostgreSQL */ + } else { Mmsg(mdb->cmd, "INSERT INTO PathVisibility (PathId, JobId) " "SELECT a.PathId,%s "