src/dird/ua_restore.c
bool insert_table_into_findex_list(UAContext *ua, RESTORE_CTX *rx, char *table)
{
   strip_trailing_junk(table);
   Mmsg(rx->query, uar_jobid_fileindex_from_table, table);

   rx->found = false;
   /* Find and insert jobid and File Index */
   if (!db_sql_query(ua->db, rx->query, jobid_fileindex_handler, (void *)rx)) {
      ua->error_msg(_("Query failed: %s. ERR=%s\n"),
         rx->query, db_strerror(ua->db));
   }
   if (!rx->found) {
      ua->error_msg(_("No table found: %s\n"), table);
      return true;
   }
   return true;
}
/*
 * Get the JobId and FileIndexes of all files in the specified table
 */
Get the JobId and FileIndexes of all files in the specified table
Get the JobId and FileIndexes of all files in the specified table
bool insert_table_into_findex_list(UAContext *ua, RESTORE_CTX *rx, char *table)
{
   strip_trailing_junk(table);
   Mmsg(rx->query, uar_jobid_fileindex_from_table, table);
   rx->found = false;
   if (!db_sql_query(ua->db, rx->query, jobid_fileindex_handler, (void *)rx)) {
      ua->error_msg(_("Query failed: %s. ERR=%s\n"),
         rx->query, db_strerror(ua->db));
   }
   if (!rx->found) {
      ua->error_msg(_("No table found: %s\n"), table);
      return true;
   }
   return true;
}
bool insert_table_into_findex_list ( UAContext * ua , RESTORE_CTX * rx , char * table ) { strip_trailing_junk ( table ) ; Mmsg ( rx -> query , uar_jobid_fileindex_from_table , table ) ; rx -> found = false ; if ( ! db_sql_query ( ua -> db , rx -> query , jobid_fileindex_handler , ( void * ) rx ) ) { ua -> error_msg ( _ ( " \n " ) , rx -> query , db_strerror ( ua -> db ) ) ; } if ( ! rx -> found ) { ua -> error_msg ( _ ( " \n " ) , table ) ; return true ; } return true ; }
Get the JobId and FileIndexes of all files in the specified table
Get the JobId and FileIndexes of all files in the specified table
/* Find and insert jobid and File Index */