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

Log_DeviceBlockCount Log_Writer::CalculateReservedPages ( SAPDB_UInt  numPagesInQueues  )  [inline]

returns the number of pages reserved for special purposes

Parameters:
numPagesInQueues 
Returns:
the number of pages not writable by normal operation

Definition at line 293 of file Log_Writer.hpp.

References LOG_RESTART_RESERVE_SPACE, and m_PagesNotAvailableForUsers.

Referenced by Log_Volume::CreateForNewDatabase(), and Log_Volume::Restart().

    {
        m_PagesNotAvailableForUsers = numPagesInQueues + g01maxuser() + 1;
        return m_PagesNotAvailableForUsers + LOG_RESTART_RESERVE_SPACE;
    }


Generated by  Doxygen 1.6.0   Back to index