INT32 _pmdDataProcessor::_onKillContextsReqMsg( MsgHeader *msg ) { PD_LOG ( PDDEBUG, "session[%s] _onKillContextsReqMsg", getSession()->sessionName() ) ; INT32 rc = SDB_OK ; INT32 contextNum = 0 ; INT64 *pContextIDs = NULL ; rc = msgExtractKillContexts ( (CHAR*)msg, &contextNum, &pContextIDs ) ; PD_RC_CHECK( rc, PDERROR, "Session[%s] extract kill contexts msg failed, " "rc: %d", getSession()->sessionName(), rc ) ; if ( contextNum > 0 ) { PD_LOG ( PDDEBUG, "KillContext: contextNum:%d\ncontextID: %lld", contextNum, pContextIDs[0] ) ; } rc = rtnKillContexts ( contextNum, pContextIDs, eduCB(), _pRTNCB ) ; done: return rc ; error: goto done ; }
void _qgmPlScan::_killContext() { if ( -1 != _contextID && NULL != _eduCB ) { rtnKillContexts( 1, &_contextID, _eduCB, _rtnCB ) ; _contextID = -1 ; } }
void _qgmPlCommand::_killContext() { if ( -1 != _contextID ) { SDB_RTNCB *rtnCB = pmdGetKRCB()->getRTNCB() ; rtnKillContexts( 1, &_contextID, _eduCB, rtnCB ) ; _contextID = -1 ; } return ; }