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

void Kernel_Administration::SetLogAutoOverwrite ( tsp00_TaskId  taskid,
bool  on 
) [private, virtual]

If on is true the log is automatically overwritten. This disables the need for log backups. After this call the log history is lost.

taskid [in]
on [in]

Implements Kernel_IAdminConfig.

Definition at line 1686 of file Kernel_Administration.cpp.

References Kernel_StateScope::EnterCriticalState(), Log_Volume::Instance(), m_State, and Offline().

    SAPDBTRACE_METHOD_DEBUG ("Kernel_Administration::SetLogAutoOverwrite", Common_Trace, 5);

    Kernel_StateScope state (Kernel_State::criticalStateConfiguration, m_State);

    if ( ! state.EnterCriticalState() )
        Offline (e_dbm_command_not_possible, true);

    if ( ! Log_Volume::Instance().SetAutomaticOverwrite (taskid, on) )
        Offline (e_disk_not_accessible, true);

Generated by  Doxygen 1.6.0   Back to index