*/
bool db_write_batch_file_records(JCR *jcr)
{
+ int JobStatus = jcr->JobStatus;
+
if (!jcr->db_batch) { /* no files to backup ? */
Dmsg0(50,"db_create_file_record : no files\n");
return true;
}
+ if (job_canceled(jcr)) {
+ return false;
+ }
Dmsg1(50,"db_create_file_record changes=%u\n",jcr->db_batch->changes);
+ jcr->JobStatus = JS_AttrInserting;
if (!sql_batch_end(jcr, jcr->db_batch, NULL)) {
Jmsg(jcr, M_FATAL, 0, "Bad batch end %s\n", jcr->db_batch->errmsg);
return false;
}
-
if (job_canceled(jcr)) {
return false;
}
+
/* we have to lock tables */
if (!db_sql_query(jcr->db_batch, sql_batch_lock_path_query, NULL, NULL)) {
Jmsg(jcr, M_FATAL, 0, "Can't lock Path table %s\n", jcr->db_batch->errmsg);
db_sql_query(jcr->db_batch, "DROP TABLE batch", NULL,NULL);
+ jcr->JobStatus = JobStatus; /* reset entry status */
return true;
}
#define JS_WaitMaxJobs 'd' /* Waiting for maximum jobs */
#define JS_WaitStartTime 't' /* Waiting for start time */
#define JS_WaitPriority 'p' /* Waiting for higher priority jobs to finish */
+#define JS_AttrDespooling 'a' /* SD despooling attributes */
+#define JS_AttrInserting 'i' /* Doing batch insert file records */
/* Migration selection types */
enum {
case JS_WaitPriority:
jobstat = _("Waiting on Priority");
break;
+ case JS_AttrDespooling:
+ jobstat = _("SD despooling Attributes");
+ break;
+ case JS_AttrInserting:
+ jobstat = _("Dir inserting Attributes");
+ break;
default:
if (JobStatus == 0) {
*/
bool dir_send_job_status(JCR *jcr)
{
- return bnet_fsend(jcr->dir_bsock, Job_status, jcr->Job, jcr->JobStatus);
+ return jcr->dir_bsock->fsend(Job_status, jcr->Job, jcr->JobStatus);
}
/*
}
spool_stats.attr_size += size;
V(mutex);
+ set_jcr_job_status(jcr, JS_AttrDespooling);
+ dir_send_job_status(jcr);
Jmsg(jcr, M_INFO, 0, _("Sending spooled attrs to the Director. Despooling %s bytes ...\n"),
edit_uint64_with_commas(size, ec1));
jcr->dir_bsock->despool(update_attr_spool_size, size);
Technical notes on version 2.3
General:
+06Oct07
+kes Fix Win32 drive display in bat version browser. Fixes bug #962.
05Oct07
+kes Fix doc issue. This fixes bug #963.
kes Fix listing performance problems in bat. Pointed out by
Chris Howells.
kes Remove old debug code.