From: Michal Rakowski Date: Fri, 17 Dec 2021 11:16:24 +0000 (+0100) Subject: Allow plugin metadata with size >64KB X-Git-Tag: Release-11.3.2~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10dfb14e1a3610ca293675bf542a793569f24555;p=thirdparty%2Fbacula.git Allow plugin metadata with size >64KB --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 22b138dec..1b94ee3df 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -255,9 +255,8 @@ bool metadata_save(JCR *jcr, const plugin_metadata *plug_meta) for (uint32_t i=0; iget(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; }