]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak new restore object code
authorKern Sibbald <kern@sibbald.com>
Fri, 16 Apr 2010 18:56:14 +0000 (20:56 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:50:33 +0000 (16:50 +0200)
bacula/src/dird/fd_cmds.c
bacula/src/filed/job.c

index 94b58dd2200b6abd1ab97b5d49b3617cd5f75dbf..437e095bc3e902e112fd7c651390a43fbb398254 100644 (file)
@@ -706,7 +706,7 @@ bool send_restore_objects(JCR *jcr)
       return true;
    }
    Mmsg(query, "SELECT JobId,ObjectLength,ObjectIndex,ObjectType,"
-        "FileIndex,Fname,RestoreObject FROM RestoreObject "
+        "FileIndex,ObjectName,RestoreObject FROM RestoreObject "
         "WHERE JobId IN (%s) ORDER BY ObjectIndex ASC", jcr->JobIds);
    
    /* restore_object_handler is called for each file found */
index 9fa5df46cd88a1a61180f1670f6316cd6178e8b8..fd45d5da06b4fe6687d673db21bf3177a542774c 100644 (file)
@@ -645,26 +645,24 @@ static int restore_object_cmd(JCR *jcr)
       goto bail_out;
    }
 
-// Dmsg5(000, "Recv object: JobId=%u objlen=%d objinx=%d objtype=%d FI=%d\n",
-//       JobId, object_len, object_index, object_type, FileIndex);
+   Dmsg5(100, "Recv object: JobId=%u objlen=%d objinx=%d objtype=%d FI=%d\n",
+         rop.JobId, rop.object_len, rop.object_index, rop.object_type, FileIndex);
    /* Read Object name */
    if (dir->recv() < 0) {
       goto bail_out;
    }
-// Dmsg2(000, "Recv Fname object: len=%d Oname=%s\n", dir->msglen, dir->msg);
+   Dmsg2(100, "Recv Oname object: len=%d Oname=%s\n", dir->msglen, dir->msg);
    rop.object_name = bstrdup(dir->msg);
 
-// Dmsg2(000, "Recv Path object: len=%d Path=%s\n", dir->msglen, dir->msg);
-
    /* Read Object */
    if (dir->recv() < 0) {
       goto bail_out;
    }
    rop.object = dir->msg;
-// Dmsg2(000, "Recv Object: len=%d Object=%s\n", dir->msglen, dir->msg);
+   Dmsg2(100, "Recv Object: len=%d Object=%s\n", dir->msglen, dir->msg);
 
    if (strcmp(rop.object_name, "job_metadata.xml") == 0) {
-      Dmsg0(000, "got job metadata\n");
+      Dmsg0(100, "got job metadata\n");
       free_and_null_pool_memory(jcr->job_metadata);
       jcr->job_metadata = rop.object;
       rop.object = NULL;