]> git.sur5r.net Git - bacula/bacula/commitdiff
Send level before the fileset in estimate_cmd() like in backup()
authorEric Bollengier <eric@baculasystems.com>
Mon, 4 Jun 2012 16:12:37 +0000 (18:12 +0200)
committerEric Bollengier <eric@baculasystems.com>
Tue, 19 Jun 2012 06:48:09 +0000 (08:48 +0200)
bacula/src/dird/ua_cmds.c

index c86f1ab0828ff67e446b5aff03de7a36151c1ff3..603990e22b9943b9ddfbbd6cebcdee030b7cd500 100644 (file)
@@ -1206,16 +1206,6 @@ static int estimate_cmd(UAContext *ua, const char *cmd)
       return 1;
    }
 
-   if (!send_include_list(jcr)) {
-      ua->error_msg(_("Error sending include list.\n"));
-      goto bail_out;
-   }
-
-   if (!send_exclude_list(jcr)) {
-      ua->error_msg(_("Error sending exclude list.\n"));
-      goto bail_out;
-   }
-
    /* The level string change if accurate mode is enabled */
    if (accurate >= 0) {
       jcr->accurate = accurate;
@@ -1227,6 +1217,16 @@ static int estimate_cmd(UAContext *ua, const char *cmd)
       goto bail_out;
    }
 
+   if (!send_include_list(jcr)) {
+      ua->error_msg(_("Error sending include list.\n"));
+      goto bail_out;
+   }
+
+   if (!send_exclude_list(jcr)) {
+      ua->error_msg(_("Error sending exclude list.\n"));
+      goto bail_out;
+   }
+
    /*
     * If the job is in accurate mode, we send the list of
     * all files to FD.