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

void RTEHSS_StandbyNodeList::SetWaitForSynchronize ( SAPDB_Int4  nodeIndex  ) 

Notify that SYNCHRONIZE commands can be send since REGISTER STANDBY command was completed.

Notify that a REGISTER STANDBY command was completed.

Sets state to 'WaitForSynchronize' and this way allows node to be retrieved using RTEHSS_NodeChain class. Does not set any time stamp.

Parameters:
nodeIndex [in] index node to mark as removed (result of FindNode call)
Sets state to 'WaitForSynchronize' and this way allows node to be retrieved using RTEHSS_NodeChain class.

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

Definition at line 314 of file RTEHSS_StandbyNodeList.cpp.

References m_ListModificationCounter, m_NodeList, m_Spinlock, RTEHSS_StandbyNodeList::Statistic::nodeState, and StateWaitForSynchronize.

Referenced by Kernel_Administration::InsertStandby(), and Kernel_Administration::RegisterStandby().

{
    Statistic *nodeEntry;
    {
        RTESync_LockedScope Lock(m_Spinlock);

        nodeEntry = m_NodeList[nodeIndex];

        if ( StateWaitForSynchronize != nodeEntry->nodeState )
        {
            ++m_ListModificationCounter;
            nodeEntry->nodeState = StateWaitForSynchronize;
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index