]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Allow plugin metadata with size >64KB
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 17 Dec 2021 11:16:24 +0000 (12:16 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:04 +0000 (09:03 +0100)
bacula/src/filed/backup.c

index 22b138dec2a407c166856649fc3aaf3ac0d85c5d..1b94ee3df958d6c8585adb15450461e4c49be7cf 100644 (file)
@@ -255,9 +255,8 @@ bool metadata_save(JCR *jcr, const plugin_metadata *plug_meta)
    for (uint32_t i=0; i<mp_count; i++) {
       meta_pkt *mp = plug_meta->get(i);
 
-      /*TODO add handling for meta size >64KB*/
-      if (mp->size() > 65536) {
-         Jmsg1(jcr, M_ERROR, 0, _("Metadata size (%ld) is bigger then currently supported one (64KB)\n"),
+      if (mp->size() > 3000000) {
+         Jmsg1(jcr, M_ERROR, 0, _("Metadata size (%ld) is bigger then currently supported one (3MB)\n"),
                                  mp->size());
          goto bail_out;
       }