esc_obj = get_pool_memory(PM_FNAME);
m_allow_transactions = mult_db_connections;
+ /* At this time, when mult_db_connections == true, this is for
+ * specific console command such as bvfs or batch mode, and we don't
+ * want to share a batch mode or bvfs. In the future, we can change
+ * the creation function to add this parameter.
+ */
+ m_dedicated = mult_db_connections;
+
/*
* Initialize the private members.
*/
{
db_end_transaction(jcr);
P(mutex);
- sql_free_result();
m_ref_count--;
if (m_ref_count == 0) {
+ sql_free_result();
db_list->remove(this);
if (m_connected && m_db_handle) {
dbi_shutdown_r(m_instance);
"Name blob,"
"LStat tinyblob,"
"MD5 tinyblob,"
- "MarkId integer)")) {
+ "DeltaSeq smallint)")) {
Dmsg0(500, "sql_batch_start failed\n");
goto bail_out;
}
goto ok_out;
case SQL_TYPE_POSTGRESQL:
if (!sql_query("CREATE TEMPORARY TABLE batch ("
- "fileindex int,"
- "jobid int,"
- "path varchar,"
- "name varchar,"
- "lstat varchar,"
- "md5 varchar,"
- "markid int)")) {
+ "FileIndex int,"
+ "JobId int,"
+ "Path varchar,"
+ "Name varchar,"
+ "LStat varchar,"
+ "MD5 varchar,"
+ "DeltaSeq int)")) {
Dmsg0(500, "sql_batch_start failed\n");
goto bail_out;
}
"Name blob,"
"LStat tinyblob,"
"MD5 tinyblob,"
- "MarkId integer)")) {
+ "DeltaSeq smallint)")) {
Dmsg0(500, "sql_batch_start failed\n");
goto bail_out;
}