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

void Kernel_Administration::DropSnapShot ( tgg00_TransContext &  trans  )  [private, virtual]

This method is used in state admin to drop a snapshot of the converter, i.e. the root of the frozen restart record is removed from the current restart record.

Parameters:
trans [in|out] transaction context
Returns:
none

Implements Kernel_IAdminConfig.

Definition at line 2564 of file Kernel_Administration.cpp.

References Kernel_StateScope::EnterCriticalState(), and m_State.

Referenced by CreateSnapShot().

{
    SAPDBTRACE_METHOD_DEBUG( "Kernel_Administration::DropSnapShot", Common_Trace, 5 );
    
    Kernel_StateScope state( Kernel_State::criticalStateConfiguration, m_State );
    
    if( ! state.EnterCriticalState()){
        RTE_Message(Admin_Exception(__CONTEXT__,KERNEL_CRITICAL_STATE_NOT_ENTERED,"Configuration"));
        trans.trError_gg00 = e_dbm_command_not_possible;
        return;
    }

    if( ! DropSnapShot( trans.trTaskId_gg00 )){
        trans.trError_gg00 = e_disk_not_accessible;
        return;
    }
}


Generated by  Doxygen 1.6.0   Back to index