/*
* Exported globals from sql.c
*/
-extern int DLL_IMP_EXP db_type; /* SQL engine type index */
+extern int CATS_IMP_EXP db_type; /* SQL engine type index */
/*
* Some functions exported by sql.c for use within the
int db_int64_handler(void *ctx, int num_fields, char **row);
int db_list_handler(void *ctx, int num_fields, char **row);
void db_thread_cleanup();
-void dbg_print_db(JCR *jcr, FILE *fp);
+void db_debug_print(JCR *jcr, FILE *fp);
int db_int_handler(void *ctx, int num_fields, char **row);
/* sql_create.c */
* ie, after a fatal signal and before exiting the program
* Print information about a B_DB object.
*/
-void dbg_print_db(JCR *jcr, FILE *fp)
+void db_debug_print(JCR *jcr, FILE *fp)
{
B_DB *mdb = jcr->db;
int stat = 0;
char ed1[50], ed2[50], ed3[50];
- if (jcr->get_JobLevel() == L_VERIFY_DISK_TO_CATALOG) {
+ if (jcr->getJobLevel() == L_VERIFY_DISK_TO_CATALOG) {
Mmsg(mdb->cmd,
"SELECT FileId, LStat, MD5 FROM File,Job WHERE "
"File.JobId=Job.JobId AND File.PathId=%s AND "
init_job_server(director->MaxConcurrentJobs);
- dbg_jcr_add_hook(dbg_print_db); /* used to debug B_DB connexion after fatal signal */
+ dbg_jcr_add_hook(db_debug_print); /* used to debug B_DB connexion after fatal signal */
// init_device_resources();
* Hook all active jobs so that they release this table
*/
foreach_jcr(jcr) {
- if (jcr->get_JobType() != JT_SYSTEM) {
+ if (jcr->getJobType() != JT_SYSTEM) {
reload_table[table].job_count++;
job_end_push(jcr, reload_job_end_cb, (void *)((long int)table));
njobs++;