From 0b51df2385125d7d185dfa43f10b7a5876232d27 Mon Sep 17 00:00:00 2001 From: David Weber Date: Wed, 16 Nov 2011 14:16:10 +0100 Subject: [PATCH] Fix bvfs_restore on MySQL --- bacula/src/cats/bvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/cats/bvfs.c b/bacula/src/cats/bvfs.c index 9131a00baf..9b73c992f5 100644 --- a/bacula/src/cats/bvfs.c +++ b/bacula/src/cats/bvfs.c @@ -995,7 +995,7 @@ bool Bvfs::compute_restore_list(char *fileid, char *dirid, char *hardlink, /* MySQL need it */ if (db_get_type_index(db) == SQL_TYPE_MYSQL) { - Mmsg(query, "CREATE INDEX idx_%s ON b2%s (JobId)", + Mmsg(query, "CREATE INDEX idx_%s ON %s (JobId)", output_table, output_table); Dmsg1(dbglevel_sql, "q=%s\n", query.c_str()); if (!db_sql_query(db, query.c_str(), NULL, NULL)) { -- 2.39.5