From b7d5ed00bd05612bfb1b6987ac0ca757698cac81 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 25 Nov 2010 15:33:27 +0100 Subject: [PATCH] Add delta_seq available for plugin restore --- bacula/src/filed/fd_plugins.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5