Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void RTEHSS_StandbyNodeList::GotPrepareStandby ( SAPDB_Int4  nodeIndex  ) 

Notify that a PREPARE STANDBY command was received for the node.

Updates timeOfPrepareStandby and sets state to 'InPrepareStandby'.

Parameters:
nodeIndex [in] index node to mark as removed (result of FindNode call)
Updates timeOfPrepareStandby and sets state to 'InPrepareStandby'.

Parameters:
nodeIndex [in] index node to mark as removed (result of FindNode call)

Definition at line 262 of file RTEHSS_StandbyNodeList.cpp.

References m_ListModificationCounter, m_NodeList, m_Spinlock, RTEHSS_StandbyNodeList::Statistic::nodeState, RTESys_MicroSecondTime(), StateInPrepareStandby, StateWaitForSynchronize, and RTEHSS_StandbyNodeList::Statistic::timeOfPrepareStandby.

Referenced by Kernel_Administration::PrepareStandby().

{
    Statistic *nodeEntry;
    SAPDB_UInt8 now = RTESys_MicroSecondTime();
    {
        RTESync_LockedScope Lock(m_Spinlock);

        nodeEntry = m_NodeList[nodeIndex];

        if ( StateWaitForSynchronize == nodeEntry->nodeState )
        {
            --m_ListModificationCounter;
        }
        nodeEntry->nodeState = StateInPrepareStandby;
        nodeEntry->timeOfPrepareStandby = now;
    }
}


Generated by  Doxygen 1.6.0   Back to index