From: Eric Bollengier Date: Thu, 25 Nov 2010 14:33:27 +0000 (+0100) Subject: Add delta_seq available for plugin restore X-Git-Tag: Release-7.0.0~1339 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7d5ed00bd05612bfb1b6987ac0ca757698cac81;p=bacula%2Fbacula Add delta_seq available for plugin restore --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 5d3e82b411..0af73e45f8 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -196,7 +196,10 @@ void generate_plugin_event(JCR *jcr, bEventType eventType, void *value) Dmsg2(dbglvl, "plugin_ctx=%p JobId=%d\n", jcr->plugin_ctx_list, jcr->JobId); - /* Pass event to every plugin (except if name is set) */ + /* + * Pass event to every plugin (except if name is set). If name + * is set, we pass it only to the plugin with that name. + */ foreach_alist(plugin, plugin_list) { if (name && !for_this_plug(plugin, name, len)) { i++; @@ -599,6 +602,7 @@ int plugin_create_file(JCR *jcr, ATTR *attr, BFILE *bfd, int replace) rp.pkt_size = sizeof(rp); rp.pkt_end = sizeof(rp); + rp.delta_seq = attr->delta_seq; rp.stream = attr->stream; rp.data_stream = attr->data_stream; rp.type = attr->type;