(*hardlink && !is_a_number_list(hardlink))||
(!*hardlink && !*fileid && !*dirid && !*hardlink))
{
+ Dmsg0(dbglevel, "ERROR: One or more of FileId, DirId or HardLink is not given or not a number.\n");
return false;
}
if (!check_temp(output_table)) {
+ Dmsg0(dbglevel, "ERROR: Wrong format for table name (in path field).\n");
return false;
}
Mmsg(tmp, "SELECT Path FROM Path WHERE PathId=%lld", id);
if (!db->bdb_sql_query(tmp.c_str(), get_path_handler, (void *)&tmp2)) {
- Dmsg0(dbglevel, "Can't search for path\n");
+ Dmsg3(dbglevel, "ERROR: Path not found %lld q=%s s=%s\n",
+ id, tmp.c_str(), tmp2.c_str());
/* print error */
goto bail_out;
}
if (!strcmp(tmp2.c_str(), "")) { /* path not found */
- Dmsg3(dbglevel, "Path not found %lld q=%s s=%s\n",
+ Dmsg3(dbglevel, "ERROR: Path not found %lld q=%s s=%s\n",
id, tmp.c_str(), tmp2.c_str());
break;
}
prev_jobid=0;
while (get_next_id_from_list(&hardlink, &jobid) == 1) {
if (get_next_id_from_list(&hardlink, &id) != 1) {
- Dmsg0(dbglevel, "hardlink should be two by two\n");
+ Dmsg0(dbglevel, "ERROR: hardlink should be two by two\n");
goto bail_out;
}
if (jobid != prev_jobid) { /* new job */
Dmsg1(dbglevel_sql, "query=%s\n", query.c_str());
if (!db->bdb_sql_query(query.c_str(), NULL, NULL)) {
- Dmsg1(dbglevel, "Can't execute query=%s\n", query.c_str());
+ Dmsg1(dbglevel, "ERROR executing query=%s\n", query.c_str());
goto bail_out;
}
/* TODO: handle jobid filter */
Dmsg1(dbglevel_sql, "query=%s\n", query.c_str());
if (!db->bdb_sql_query(query.c_str(), NULL, NULL)) {
- Dmsg1(dbglevel, "Can't execute query=%s\n", query.c_str());
+ Dmsg1(dbglevel, "ERROR executing query=%s\n", query.c_str());
goto bail_out;
}
output_table, output_table);
Dmsg1(dbglevel_sql, "query=%s\n", query.c_str());
if (!db->bdb_sql_query(query.c_str(), NULL, NULL)) {
- Dmsg1(dbglevel, "Can't execute query=%s\n", query.c_str());
+ Dmsg1(dbglevel, "ERROR executing query=%s\n", query.c_str());
goto bail_out;
}
}
db->bdb_unlock();
return ret;
}
-
+
void Bvfs::insert_missing_delta(char *output_table, int64_t *res)
{
char ed1[50];
char *path=NULL, *jobid=NULL, *username=NULL;
char *empty = (char *)"";
char *fileid, *dirid, *hardlink;
+
fileid = dirid = hardlink = empty;
if (!bvfs_parse_arg(ua, &pathid, &path, &jobid, &username,
if (fs.compute_restore_list(fileid, dirid, hardlink, path)) {
ua->send_msg("OK\n");
} else {
- ua->error_msg("Can't create restore list\n");
+ ua->error_msg("Cannot create restore list.\n");
}
return true;