]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/bdb_find.c
Use the command line utility dropdb instead of the psql command
[bacula/bacula] / bacula / src / cats / bdb_find.c
index 5b9a2581a0214cf8ff0de24af25fe82bc512e263..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;