Skip to content

Commit

Permalink
Merge branch 'bareos-15.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Jul 15, 2016
2 parents 0a161b0 + 15e0d2f commit c6ab2ea
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/dird/ndmp_dma_backup.c
Expand Up @@ -580,6 +580,14 @@ bool do_ndmp_backup(JCR *jcr)
* Copy the actual job to perform.
*/
memcpy(&ndmp_sess.control_acb->job, &ndmp_job, sizeof(struct ndm_job_param));

/*
* We can use the same private pointer used in the logging with the JCR in
* the file index generation. We don't setup a index_log.deliver
* function as we catch the index information via callbacks.
*/
ndmp_sess.control_acb->job.index_log.ctx = ndmp_sess.param->log.ctx;

if (!fill_backup_environment(jcr,
ie,
nis->filesystem,
Expand Down Expand Up @@ -625,12 +633,6 @@ bool do_ndmp_backup(JCR *jcr)
ndmp_sess.conn_open = 1;
ndmp_sess.conn_authorized = 1;

/*
* We can use the same private pointer used in the logging with the JCR in
* the file index generation. We don't setup a index_log.deliver
* function as we catch the index information via callbacks.
*/
ndmp_sess.control_acb->job.index_log.ctx = ndmp_sess.param->log.ctx;
register_callback_hooks(&ndmp_sess.control_acb->job.index_log);

/*
Expand Down

0 comments on commit c6ab2ea

Please sign in to comment.