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

Replaced reference to the legacy notifier thread with the db alerting mechanism

parent 8b1ae42c
No related branches found
No related tags found
No related merge requests found
......@@ -718,6 +718,8 @@ BEGIN
WHERE reqType = 39 -- PutDone
AND castorFile = cfId
AND status = dconst.SUBREQUEST_WAITSUBREQ;
-- and wake up the stager for processing it
DBMS_ALERT.SIGNAL('wakeUpStageReqSvc', '');
END IF;
-- Archive Subrequest
archiveSubReq(srId, 8); -- FINISHED
......
......@@ -58,7 +58,6 @@
#include "castor/replier/RequestReplier.hpp"
#include "castor/stager/daemon/DlfMessages.hpp"
#include "castor/stager/daemon/JobSvcThread.hpp"
#include "castor/server/NotifierThread.hpp"
//-----------------------------------------------------------------------------
// constructor
......@@ -223,8 +222,6 @@ void castor::stager::daemon::JobSvcThread::handleMoverCloseRequest
fileId, nsHost, 4, params);
jobSvc->prepareForMigration(mcReq->subReqId(), mcReq->fileSize(), mcReq->timeStamp(),
fileId, nsHost, mcReq->csumType(), mcReq->csumValue());
// process any potential putDone waiting for this call by waking up a "Stage" thread
castor::server::NotifierThread::getInstance()->doNotify('S');
} catch (castor::exception::Exception& e) {
// For "Bad checksum" (1037) and ENOENT errors call putFailed() to invalidate the
// DiskCopy. If we don't do this the file remains stuck in STAGEOUT until
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment