From: David Weber Date: Wed, 16 Nov 2011 13:16:10 +0000 (+0100) Subject: Fix bvfs_restore on MySQL X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b51df2385125d7d185dfa43f10b7a5876232d27;p=bacula%2Fbacula Fix bvfs_restore on MySQL --- 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)) {