Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Apr 11, 2017
1 parent e73f77e commit 983b2e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cats/sql_create.c
Expand Up @@ -866,7 +866,6 @@ bool B_DB::write_batch_file_records(JCR *jcr)
goto bail_out;
*/
}
#endif

if (!sql_query(SQL_QUERY_batch_fill_filename_query)) {
Jmsg1(jcr,M_FATAL,0,"Fill Filename table %s\n", errmsg);
Expand All @@ -878,6 +877,7 @@ bool B_DB::write_batch_file_records(JCR *jcr)
Jmsg1(jcr, M_FATAL, 0, "Unlock Filename table %s\n", errmsg);
goto bail_out;
}
#endif

if (!sql_query( "INSERT INTO File (FileIndex, JobId, PathId, Name, LStat, MD5, DeltaSeq) "
"SELECT batch.FileIndex, batch.JobId, Path.PathId, "
Expand All @@ -891,6 +891,7 @@ bool B_DB::write_batch_file_records(JCR *jcr)
jcr->JobStatus = JobStatus; /* reset entry status */
retval = true;


bail_out:
sql_query("DROP TABLE batch");
jcr->batch_started = false;
Expand Down

0 comments on commit 983b2e3

Please sign in to comment.