]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
pluginclass: Fix command parsing.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Thu, 14 Oct 2021 15:25:42 +0000 (17:25 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
bacula/src/plugins/fd/pluginlib/pluginclass.cpp

index 94313639474b9e26d78464a9c3f9cc240d44d7e7..d394a0bea763af295ba50ad21aa5b9357d9b1338 100644 (file)
@@ -262,10 +262,6 @@ namespace pluginlib
     */
    bRC PLUGINBCLASS::parse_plugin_command(bpContext *ctx, const char *command)
    {
-      // bool found;
-      // int count;
-      // int parargc, argc;
-
       DMSG(ctx, DINFO, "Parse command: %s\n", command);
       if (parser.parse_cmd(command) != bRC_OK) {
          DMSG0(ctx, DERROR, "Unable to parse Plugin command line.\n");
@@ -288,6 +284,7 @@ namespace pluginlib
                pluginctx_set_abort_on_error();
             }
             DMSG1(ctx, DINFO, "abort_on_error found: %s\n", pluginctx_is_abort_on_error() ? "True" : "False");
+            continue;
          }
          /* scan for listing parameter, so the estimate job should be executed as a Listing procedure */
          if (EstimateFull == mode && bstrcmp(parser.argk[i], "listing")){
@@ -572,6 +569,8 @@ namespace pluginlib
 
       bRC status = perform_start_backup_file(ctx, sp);
 
+      DMSG2(ctx, DINFO, "StartBackup: %s %ld\n", sp->fname, sp->statp.st_size);
+
       // DMSG3(ctx, DINFO, "TSDebug: %ld(at) %ld(mt) %ld(ct)\n",
       //       sp->statp.st_atime, sp->statp.st_mtime, sp->statp.st_ctime);