]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Allow small volume poll interval in DEVELOPPER's mode
authorEric Bollengier <eric@baculasystems.com>
Mon, 9 May 2022 16:19:30 +0000 (18:19 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
bacula/src/stored/init_dev.c

index 6273d4d6ad6e4407428274ff49a7f415edcb1548..a0dd15909b0205c781d0133fc036562ae5cc6d11 100644 (file)
@@ -319,10 +319,13 @@ void DEVICE::device_generic_init(JCR *jcr, DEVRES *device)
    } else {
       dev->max_part_size = device->max_part_size;
    }
+
+#ifndef DEVELOPER
    /* Sanity check */
    if (dev->vol_poll_interval && dev->vol_poll_interval < 60) {
       dev->vol_poll_interval = 60;
    }
+#endif
 
    if (!device->dev) {
       /* The first time we create a DEVICE from the DEVRES, we keep a pointer