]> git.sur5r.net Git - bacula/bacula/commitdiff
fix update_job_end
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 29 Jul 2009 20:41:44 +0000 (22:41 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 3 Aug 2009 14:39:18 +0000 (16:39 +0200)
bacula/src/cats/sql_update.c
bacula/src/dird/catreq.c

index c7413850bbb3fda2b30d1aa27fb1a32dd2ae2463..83f71822e15d8ce9f3029378a5b47db48a3386d1 100644 (file)
@@ -191,8 +191,8 @@ db_update_job_end_record(JCR *jcr, B_DB *mdb, JOB_DBR *jr)
       jr->PoolId, jr->FileSetId, edit_uint64(JobTDate, ed2), 
       rdt,
       PriorJobId,
-      edit_int64(jr->JobId, ed3),
-      jr->HasBase);
+      jr->HasBase,
+      edit_int64(jr->JobId, ed3));
 
    stat = UPDATE_DB(jcr, mdb, mdb->cmd);
 
index cf1dee583685a7a34f0664c7a732dfb146f834ff..00af56fa38d25241265fab2d47e41aaf2fe9228e 100644 (file)
@@ -415,7 +415,6 @@ static void update_attribute(JCR *jcr, char *msg, int32_t msglen)
       skip_nonspaces(&p);             /* skip FileIndex */
       skip_spaces(&p);
       ar->FileType = str_to_int32(p);     /* TODO: choose between unserialize and str_to_int32 */
-      Dmsg1(0, "FileType=%i\n", ar->FileType);
       skip_nonspaces(&p);             /* skip FileType */
       skip_spaces(&p);
       fname = p;