src/dird/catreq.c
void catalog_update(JCR *jcr, BSOCK *bs)
{
   if (!jcr->pool->catalog_files) {
      return;                         /* user disabled cataloging */
   }
   if (jcr->is_job_canceled()) {
      goto bail_out;
   }
   if (!jcr->db) {
      POOLMEM *omsg = get_memory(bs->msglen+1);
      pm_strcpy(omsg, bs->msg);
      bs->fsend(_("1994 Invalid Catalog Update: %s"), omsg);
      Jmsg1(jcr, M_FATAL, 0, _("Invalid Catalog Update; DB not open: %s"), omsg);
      free_memory(omsg);
      goto bail_out;
   }
   update_attribute(jcr, bs->msg, bs->msglen);

bail_out:
   if (jcr->is_job_canceled()) {
      jcr->cached_attribute = false;
      cancel_storage_daemon_job(jcr);
   }
}
/*
 * Update File Attributes in the catalog with data
 *  sent by the Storage daemon.
 */
Update File Attributes in the catalog with data
sent by the Storage daemon.
Update File Attributes in the catalog with data sent by the Storage daemon .
void catalog_update(JCR *jcr, BSOCK *bs)
{
   if (!jcr->pool->catalog_files) {
      return;                         
   }
   if (jcr->is_job_canceled()) {
      goto bail_out;
   }
   if (!jcr->db) {
      POOLMEM *omsg = get_memory(bs->msglen+1);
      pm_strcpy(omsg, bs->msg);
      bs->fsend(_("1994 Invalid Catalog Update: %s"), omsg);
      Jmsg1(jcr, M_FATAL, 0, _("Invalid Catalog Update; DB not open: %s"), omsg);
      free_memory(omsg);
      goto bail_out;
   }
   update_attribute(jcr, bs->msg, bs->msglen);
bail_out:
   if (jcr->is_job_canceled()) {
      jcr->cached_attribute = false;
      cancel_storage_daemon_job(jcr);
   }
}
void catalog_update ( JCR * jcr , BSOCK * bs ) { if ( ! jcr -> pool -> catalog_files ) { return ; } if ( jcr -> is_job_canceled ( ) ) { goto bail_out ; } if ( ! jcr -> db ) { POOLMEM * omsg = get_memory ( bs -> msglen + 1 ) ; pm_strcpy ( omsg , bs -> msg ) ; bs -> fsend ( _ ( " " ) , omsg ) ; Jmsg1 ( jcr , M_FATAL , 0 , _ ( " " ) , omsg ) ; free_memory ( omsg ) ; goto bail_out ; } update_attribute ( jcr , bs -> msg , bs -> msglen ) ; bail_out : if ( jcr -> is_job_canceled ( ) ) { jcr -> cached_attribute = false ; cancel_storage_daemon_job ( jcr ) ; } }
Update File Attributes in the catalog with data
  sent by the Storage daemon.
Update File Attributes in the catalog with data sent by the Storage daemon .
/* user disabled cataloging */