continue;
}
Dmsg1(dbglvl, "Command plugin = %s\n", cmd);
- /* Send the backup command */
+ /* Send the backup command to the right plugin*/
if (plug_func(plugin)->handlePluginEvent(&plugin_ctx_list[i], &event, cmd) != bRC_OK) {
goto bail_out;
}
* End of plugin data, notify plugin, then clear flags
*/
plugin = (Plugin *)jcr->plugin;
- plug_func(plugin)->endRestoreFile(&plugin_ctx_list[i]);
+ plug_func(plugin)->endRestoreFile((bpContext *)jcr->plugin_ctx);
jcr->plugin_ctx = NULL;
jcr->plugin = NULL;
goto bail_out;
General:
29Sep08
+kes Correct a bug in passing the context to the endRestoreFile() plugin command.
+ Bastien Friedrich reported the bug.
kes Create plugin instance only when FD job starts.
kes Add new FD plugin event: bEventCancelCommand when
a cancel command is issued to the FD.