#endif /* HAVE_BATCH_FILE_INSERT */
-/* Create a new record for the Job
- * Returns: false on failure
+/** Create a new record for the Job
+ * Returns: false on failure
* true on success
*/
bool
}
-/* Create a JobMedia record for medium used this job
- * Returns: false on failure
+/** Create a JobMedia record for medium used this job
+ * Returns: false on failure
* true on success
*/
bool
}
count++;
- /* Note, jm->Strip is not used and is not likely to be used
- * in the near future, so I have removed it from the insert
- * to save space in the DB. KES June 2006.
- */
Mmsg(mdb->cmd,
"INSERT INTO JobMedia (JobId,MediaId,FirstIndex,LastIndex,"
"StartFile,EndFile,StartBlock,EndBlock,VolIndex) "
return ok;
}
-/* Create Unique Pool record
- * Returns: false on failure
+/** Create Unique Pool record
+ * Returns: false on failure
* true on success
*/
bool
return stat;
}
-/*
+/**
* Create Unique Device record
* Returns: false on failure
* true on success
-/*
+/**
* Create a Unique record for Storage -- no duplicates
* Returns: false on failure
* true on success with id in sr->StorageId
}
-/*
+/**
* Create Unique MediaType record
* Returns: false on failure
* true on success
}
-/*
+/**
* Create Media record. VolumeName and non-zero Slot must be unique
*
* Returns: 0 on failure
return stat;
}
-/*
+/**
* Create a Unique record for the client -- no duplicates
* Returns: 0 on failure
* 1 on success with id in cr->ClientId
}
-/* Create a Unique record for the Path -- no duplicates */
+/** Create a Unique record for the Path -- no duplicates */
int db_create_path_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
{
SQL_ROW row;
return stat;
}
-/*
+/**
* Create a Unique record for the counter -- no duplicates
* Returns: 0 on failure
* 1 on success with counter filled in
}
-/*
+/**
* Create a FileSet record. This record is unique in the
* name and the MD5 signature of the include/exclude sets.
* Returns: 0 on failure
}
-/*
+/**
* struct stat
* {
* dev_t st_dev; * device *
#ifdef HAVE_BATCH_FILE_INSERT
-/* All sql_batch_* functions are used to do bulk batch insert in File/Filename/Path
+/** All sql_batch_* functions are used to do bulk batch insert in File/Filename/Path
* tables. This code can be activated by adding "#define HAVE_BATCH_FILE_INSERT 1"
* in baconfig.h
*
return true;
}
-/*
+/**
* Create File record in B_DB
*
* In order to reduce database size, we store the File attributes,
#else /* ! HAVE_BATCH_FILE_INSERT */
-/*
+/**
* Create File record in B_DB
*
* In order to reduce database size, we store the File attributes,
}
-/*
+/**
* This is the master File entry containing the attributes.
* The filename and path records have already been created.
*/
return stat;
}
-/* Create a Unique record for the filename -- no duplicates */
+/** Create a Unique record for the filename -- no duplicates */
static int db_create_filename_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
{
SQL_ROW row;
"ON COMMIT PRESERVE ROWS WITH NORECOVERY"
};
-/*
+/**
* Create file attributes record, or base file attributes record
*/
bool db_create_attributes_record(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
return ret;
}
-/*
+/**
* Create Base File record in B_DB
*
*/
return ret;
}
-/*
+/**
* Cleanup the base file temporary tables
*/
static void db_cleanup_base_file(JCR *jcr, B_DB *mdb)
db_sql_query(mdb, buf.c_str(), NULL, NULL);
}
-/*
+/**
* Put all base file seen in the backup to the BaseFile table
* and cleanup temporary tables
*/
return ret;
}
-/*
+/**
* Find the last "accurate" backup state with Base jobs
* 1) Get all files with jobid in list (F subquery)
* 2) Take only the last version of each file (Temp subquery) => accurate list is ok
}
-/*
+/**
* Create Restore Object record in B_DB
*
*/
Mmsg(mdb->cmd,
"INSERT INTO RestoreObject (Fname,Path,PluginName,RestoreObject,"
"ObjectLength,ObjectIndex,ObjectType,FileIndex,JobId) VALUES"
- "('%s','%s','%s','%s',%d,%d,%d,%d,%u)",
+ "('%s','%s','%s','%s',%d,%d,%d,%d,%u)",
mdb->esc_name, mdb->esc_path, mdb->esc_path, esc_obj, ro->object_len,
ro->ObjectIndex, FT_RESTORE_FIRST, ro->FileIndex, ro->JobId);
#define UA_CMD_SIZE 1000
-/*
- * Open the bootstrap file and find the first Storage=
+/**
+ * Open the bootstrap file and find the first Storage=
* Returns ok if able to open
* It fills the storage name (should be the first line)
* and the file descriptor to the bootstrap file,
return true;
}
-/**
+/**
* This function compare the given storage name with the
* the current one. We compare the name and the address:port.
* Returns true if we use the same storage.
return true;
}
-/**
+/**
* Check if the current line contains Storage="xxx", and compare the
* result to the current storage. We use UAContext to analyse the bsr
* string.
return true;
}
-/**
+/**
* Change the read storage resource for the current job.
*/
static void select_rstore(JCR *jcr, struct bootstrap_info &info)
}
}
-/**
+/**
* The bootstrap is stored in a file, so open the file, and loop
* through it processing each storage device in turn. If the
* storage is different from the prior one, we open a new connection