Skip to content
Snippets Groups Projects
Commit 3733f201 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Added logging message

parent d1f6381d
Branches
Tags
No related merge requests found
......@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: CleaningThread.cpp,v $ $Revision: 1.1 $ $Release$ $Date: 2008/05/30 07:30:42 $ $Author: itglp $
* @(#)$RCSfile: CleaningThread.cpp,v $ $Revision: 1.2 $ $Release$ $Date: 2009/03/05 11:45:42 $ $Author: itglp $
*
* Thread for logging database cleaning operations
*
......@@ -53,7 +53,10 @@ void castor::stager::daemon::CleaningThread::run(void* param) throw() {
castor::stager::IGCSvc *gcSvc = dynamic_cast<castor::stager::IGCSvc*>(svc);
// actual work: dump the cleanup logs to DLF (cf. cleaningDaemon)
gcSvc->dumpCleanupLogs();
gcSvc->dumpCleanupLogs();
// log we're done
castor::dlf::dlf_writep(nullCuuid, DLF_LVL_SYSTEM, STAGER_GCSVC_CLEANUPDONE);
// now let's free up the database connection, which otherwise remains idle
svc = svcs->service("DbCnvSvc", castor::SVC_DBCNV);
......
......@@ -118,6 +118,7 @@ namespace castor{
STAGER_GCSVC_FNSDEL = 120, /* "File deleted since it disappeared from nameserver" */
STAGER_GCSVC_STGFILDEL = 125, /* "Invoking stgFilesDeleted" */
STAGER_GCSVC_FSTGDEL = 126 , /* "File to be unlinked since it dissapeared from the stager" */
STAGER_GCSVC_CLEANUPDONE = 127, /* "Dump of the cleanup log completed, dropping db connection" */
/************/
/* ErrorSvc */
......
......@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: StagerDaemon.cpp,v $ $Revision: 1.63 $ $Release$ $Date: 2009/01/21 15:28:52 $ $Author: itglp $
* @(#)$RCSfile: StagerDaemon.cpp,v $ $Revision: 1.64 $ $Release$ $Date: 2009/03/05 11:45:42 $ $Author: itglp $
*
* Main stager daemon
*
......@@ -244,6 +244,7 @@ castor::stager::daemon::StagerDaemon::StagerDaemon() throw (castor::exception::E
{ STAGER_GCSVC_STGFILDEL, "Invoking stgFilesDeleted"},
{ STAGER_GCSVC_FSTGDEL, "File to be unlinked since it disappeared from the stager"},
{ STAGER_GCSVC_FNSDEL, "File deleted since it disappeared from nameserver"},
{ STAGER_GCSVC_CLEANUPDONE, "Dump of the cleanup log completed, dropping db connection"},
/************/
/* ErrorSvc */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment