bareos: bareos-16.2 a5aa2618

Author Committer Branch Timestamp Parent
mvwieringen mvwieringen bareos-16.2 2017-06-28 19:41 bareos-16.2 fde6778b Pending
Changeset gfapi: Don't reinitialize the connection to gluster

The plugin event bEventRestoreCommand is fired for each file we are
supposed to restore, currently we don't check if we already have setup
the connection to gluster using the function connect_to_gluster() and as
such we leak a set of socket connections for each file restored. This is
bad so lets properly check if things are already setup correctly.

For a backup we do the same e.g. check if p_ctx->glfs is not already
initialized.
mod - src/plugins/filed/gfapi-fd.c Diff File