POOLMEM *cached_path;
int cached_path_len; /* length of cached path */
uint32_t cached_path_id;
+ bool allow_transactions; /* transactions allowed */
int changes; /* changes made to db */
POOLMEM *fname; /* Filename only */
POOLMEM *path; /* Path only */
mdb->path = get_pool_memory(PM_FNAME);
mdb->esc_name = get_pool_memory(PM_FNAME);
mdb->esc_path = get_pool_memory(PM_FNAME);
+ mdb->allow_transactions = mult_db_connections;
qinsert(&db_list, &mdb->bq); /* put db in list */
Dmsg3(100, "initdb ref=%d connected=%d db=%p\n", mdb->ref_count,
mdb->connected, mdb->db);
static void update_lock_dbg(B_DB *mdb)
{
-#ifdef xxx
if (mdb->allow_transactions) { /* batch connection */
return;
}
_db_lock_recurse_count++;
_db_lock_time = (utime_t) time(NULL);
_db_lock_threadid = pthread_self();
-#endif
}
static void update_unlock_dbg(B_DB *mdb)
{
-#ifdef xxx
if (mdb->allow_transactions) { /* batch connection */
return;
}
if (!_db_lock_recurse_count) {
memset(&_db_lock_threadid, 0, sizeof(_db_lock_threadid));
}
-#endif
}
/*