X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fnewvol.c;h=ced21df068f3356e09999e1b6d346db58f93f8c9;hb=6a613a3196542ea1358218d9a3b9f05ab1215c43;hp=46f5b9212a1dd5639601397ec09822467b83c5ce;hpb=4b18a6602ebbe104625034aea3a113ec00e8ce56;p=bacula%2Fbacula diff --git a/bacula/src/dird/newvol.c b/bacula/src/dird/newvol.c index 46f5b9212a..ced21df068 100644 --- a/bacula/src/dird/newvol.c +++ b/bacula/src/dird/newvol.c @@ -117,6 +117,7 @@ static bool create_simple_name(JCR *jcr, MEDIA_DBR *mr, POOL_DBR *pr) mr->VolumeName[0] = 0; bstrncpy(name, pr->LabelFormat, sizeof(name)); ctx.value = 0; + /* TODO: Remove Pool as it is not used in the query */ Mmsg(query, "SELECT MAX(MediaId) FROM Media,Pool WHERE Pool.PoolId=%s", edit_int64(pr->PoolId, ed1)); if (!db_sql_query(jcr->db, query.c_str(), db_int64_handler, (void *)&ctx)) {