]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/bdb_find.c
remove GROUP BY on db_get_job_volume_names. REVIEW.
[bacula/bacula] / bacula / src / cats / bdb_find.c
index 852694647433da4b411bd2f684892caacceab741..f83b91e7dc4684ef576bfa578d571c12e33825a1 100644 (file)
@@ -141,10 +141,13 @@ StartTime=%100s", &JobId, Name, cType, cLevel, StartTime) == 5) {
  *
  * Find a Volume for a given PoolId, MediaType, and VolStatus
  *
+ *   Note! this does not correctly implement InChanger.          
+ *
  * Returns: 0 on failure
  *         numrows on success
- */
-int db_find_next_volume(JCR *jcr, B_DB *mdb, int item, MEDIA_DBR *mr)
+ */    
+int
+db_find_next_volume(JCR *jcr, B_DB *mdb, int item, bool InChanger, MEDIA_DBR *mr) 
 {
    MEDIA_DBR omr;
    int stat = 0;
@@ -176,7 +179,9 @@ int db_find_next_volume(JCR *jcr, B_DB *mdb, int item, MEDIA_DBR *mr)
    return stat;                
 }
 
-int db_find_last_jobid(JCR *jcr, B_DB *mdb, JOB_DBR *jr) { return 0; }
+int
+db_find_last_jobid(JCR *jcr, B_DB *mdb, char *Name, JOB_DBR *jr)
+{ return 0; }
 
 
 #endif /* HAVE_BACULA_DB */