From: Kern Sibbald Date: Sat, 4 Jun 2011 18:53:58 +0000 (+0200) Subject: Remove broken code X-Git-Tag: Release-7.0.0~915 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17d24a73f154e283e51e324863611b6a08780075;p=bacula%2Fbacula Remove broken code --- diff --git a/bacula/src/stored/append.c b/bacula/src/stored/append.c index 89c37166c6..1af03fb822 100644 --- a/bacula/src/stored/append.c +++ b/bacula/src/stored/append.c @@ -43,24 +43,9 @@ static char OK_append[] = "3000 OK append data\n"; /* - * Check if we can mark this job incomplete - * */ void possible_incomplete_job(JCR *jcr, int32_t last_file_index) { - /* - * Note, here we decide if it is worthwhile to restart - * the Job at this point. For the moment, if at least - * 10 Files have been seen, which is good for testing, but - * for a production system, we probably want something like - * 100-1000 files, and some number of bytes of data. - * - * ****FIXME**** set last_file_index to something more - * reasonable, and maybe check JobBytes. - */ - if (jcr->spool_attributes && last_file_index > 10) { - jcr->setJobStatus(JS_Incomplete); - } } /* * Append Data sent from File daemon diff --git a/bacula/src/stored/askdir.c b/bacula/src/stored/askdir.c index 09eaf7046f..35200e09d1 100644 --- a/bacula/src/stored/askdir.c +++ b/bacula/src/stored/askdir.c @@ -479,11 +479,6 @@ bool dir_update_file_attributes(DCR *dcr, DEV_RECORD *rec) ser_bytes(rec->data, rec->data_len); dir->msglen = ser_length(dir->msg); Dmsg1(1800, ">dird %s\n", dir->msg); /* Attributes */ - if (rec->maskedStream == STREAM_UNIX_ATTRIBUTES || - rec->maskedStream == STREAM_UNIX_ATTRIBUTES_EX) { - Dmsg2(100, "==== set_data_end FI=%ld %s\n", rec->FileIndex, rec->data); - dir->set_data_end(rec->FileIndex); /* set offset of last valid data */ - } return dir->send(); }