From: Eric Bollengier Date: Fri, 16 Dec 2011 16:29:38 +0000 (+0100) Subject: Fix #3210 about slow restore with bvfs X-Git-Tag: Release-7.0.0~397 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d681a546826e811b148e2e5f14b5ce36e26935f;p=bacula%2Fbacula Fix #3210 about slow restore with bvfs The BSR creation procedure is expecting to have ordered FileIndex, this is now done with an extra SORT. --- diff --git a/bacula/src/cats/sql_cmds.c b/bacula/src/cats/sql_cmds.c index ee7724f416..d7b93211b3 100644 --- a/bacula/src/cats/sql_cmds.c +++ b/bacula/src/cats/sql_cmds.c @@ -249,7 +249,7 @@ const char *uar_jobids_fileindex = /* Query to get list of files from table -- presuably built by an external program */ const char *uar_jobid_fileindex_from_table = - "SELECT JobId,FileIndex FROM %s"; + "SELECT JobId,FileIndex FROM %s ORDER BY JobId, FileIndex ASC"; /* Get the list of the last recent version per Delta with a given jobid list * This is a tricky part because with SQL the result of