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

hbd10.h File Reference


Detailed Description

conv_usm

******************************************************************************

------------------------------------------------------------------------------

Author:
JuergenP

Definition in file hbd10.h.

#include "gsp00.h"
#include "ggg00.h"
#include "gkb00.h"
#include "vsp0031.h"

Go to the source code of this file.

Functions

externPascal pasbool b10backup_active ()
 Checks whether converter backup is active.
externPascal tsp00_Int4 b10bup_data_page_cnt (tsp00_TaskId pid)
 Returns the number of of pages marked for back up.
externPascal void b10create_converter (tsp00_TaskId TaskId, tsp00_Int4 NumAllPages)
 Creates an empty converter for a new data base (needed for activate serverdb).
externPascal void b10create_converter_for_restore (tsp00_TaskId TaskId, tsp00_Int4 ConverterVersion, tsp00_Int4 NumAllPages, pasbool LastSaveDataSuccessful, tkb00_ConfigRestartParam &RestartRecord)
externPascal void b10rc_restart_converter (tsp00_TaskId TaskId, tsp00_Int4 ConverterVersion, tsp00_Int4 NumAllPages, pasbool IncrementConvVersion, pasbool LastSaveDataSuccessful, tkb00_ConfigRestartParam &RestartParam)
 Creates converter for restarting an existing database.
externPascal void b10restart_converter_for_restore (tgg00_TransContext &t, tsp00_Int4 ConverterVersion, tsp00_Int4 NumAllPages, pasbool LastSaveDataSuccessful, tkb00_ConfigRestartParam &RestartParam, tkb00_ConfigRestartParam &OldRestartParam)
externPascal void b10use_pno (tgg00_TransContext &t, tsp00_PageNo data_pno)
 Marks a page in the converter as used.
externPascal void bd10AddDBFillingEvent (tsp31_event_ident_Param EventId, tsp00_Int4 EventThreshold, tsp31_event_prio_Param EventPrio)
 adds an event to the set of events
externPascal void bd10BeginColdVerify (tgg00_TransContext &Trans)
 Prepares converter verification in "cold" database state.
externPascal void bd10bup_pno_ready (tgg00_TransContext &t, tsp00_PageNo data_pno, tsp00_Int2 dev_no, tsp00_Int4 dev_offset, pasbool bAddressingModeIsStatic)
externPascal void bd10CheckAndStartSavepoint (tgg00_TransContext &Trans)
 If the number of changed converter pages and changed pages within data cache is nearly to the number of free blocks within FBM a savepoint is started. As long as this requested savepoint is finished this method will not request a new savepoint. This will be done only if the converter is online and not in maintenance mode.
externPascal pasbool bd10CheckBackup (tsp00_TaskId taskId)
 Checks if the current back up finished successfully. Checks if all pages marked as to be included in the back up were fetched by the back up manager.
externPascal void bd10CheckConverterBitMapPage (tsp00_Page &Page, pasbool &bPageIsDamaged)
externPascal void bd10CheckConverterPage (tsp00_Page &Page, pasbool &bPageIsDamaged)
externPascal tsp00_Int4 bd10conv_page_cnt ()
 Returns the number of converter pages required to address all static data pages.
externPascal void bd10conv_restore_entry (tsp00_TaskId TaskId, tsp00_PageNo data_pno, tsp00_Int2 dev_no, tsp00_Int4 dev_offs, pasbool bAddressingModeIsStatic)
externPascal tsp00_Int4 bd10ConverterSize ()
 Returns the numbers of all currently used converter pages.
externPascal void bd10CreateConverterSingleton ()
 instance creation
externPascal void bd10dbspace_statistic (tgg00_TransContext &t, tgg00_DbSpaceInfo &info)
 returns a number of data describing the filling state of the converter
externPascal void bd10DelDBFillingEvent (tsp31_event_ident_Param EventId, tsp00_Int4 EventThreshold)
 removes an event from the set of events
externPascal void bd10EndColdVerify (tsp00_TaskId TaskId, tsp00_Int4 &NumPermPages, tsp00_Int4 &NumReleasedBlocks)
 Finishes converter verification in "cold" database state.
externPascal void bd10EndFailedColdVerify (tsp00_TaskId TaskId)
 Finishes a failed converter verification.
externPascal void bd10EndSave (tsp00_TaskId TaskId, pasbool bBackUpSuccessful)
externPascal void bd10FinishRestoreUsedPageNos (tsp00_TaskId TaskId)
 Releases page numbers which do not belong to a restored data base.
externPascal void bd10FlushConverterSerial (tgg00_TransContext &Trans, tsp00_Int4 &ConverterVersion, tsp00_PageNo &MaxStaticPageNo, tsp00_PageNo &MaxDynamicPageNo, tsp00_Int4 &PackedConvRootBlockAddress)
 Saves converter to devspace (sequential writing).
externPascal void bd10GetConvEntry (tsp00_PageAddr pPage, tsp00_Int4 EntryNo, pasbool IsLeaf, tsp00_Int4 &DevNo, tsp00_Int4 &BlockNo, pasbool &IsMarked, pasbool &IsPending)
externPascal void bd10GetConverterArchivePage (tsp00_TaskId TaskId, tsp00_Page &Page, pasbool &bNoMorePages)
externPascal void bd10GetConverterBitMapPage (tsp00_TaskId TaskId, tsp00_Page &Page, pasbool &bNoMorePages)
externPascal tsp00_Int4 bd10GetConverterVersion ()
 Returns the actual converter version.
externPascal void bd10GetDBFillingEventSet (tsp31_short_event_desc &ShortEventDesc, pasbool bGetOverflowEvents)
externPascal void bd10GetPageHeader (tsp00_PageAddr pPage, tsp00_Int4 &Version, tsp00_Int4 &DevNo, tsp00_Int4 &BlockNo, tsp00_Int4 &BaseNo, tsp00_Int4 &TotalCnt, tsp00_Int4 &ParentIndex, tsp00_Int4 &PageEntryNo, pasbool &IsLeaf, pasbool &IsPerm, pasbool &IsDynamic)
externPascal pasbool bd10IsConnectAllowed ()
 If the database filling is nearly full and therefore a sensible work is not possible this method returns a true else false.
externPascal pasbool bd10IsDbFull (tsp00_TaskId TaskId)
 Returns true if db is full.
externPascal tsp00_PageNo bd10MaxPermDynamicPno ()
 Returns the maximum possible permanent, dynamic page number.
externPascal tsp00_PageNo bd10MaxStaticStaticPno ()
 Returns the maximum possible permanent, static page number.
externPascal tsp00_PageNo bd10MaxTempPno ()
 Returns the maximum possible temporary page number.
externPascal void bd10RemoveConverterArchivePages ()
 Clears the containers with copied converter leafpages.
externPascal void bd10RemoveConverterBitMapPages ()
 Clears the containers with used static and dynamic page numbers.
externPascal void bd10RestoreConverter (tsp00_TaskId TaskId, tsp00_PageAddr pPage)
 integrate converter pages from backup
externPascal void bd10RestoreUsedPageNos (tsp00_TaskId TaskId, tsp00_PageAddr pPage)
 Releases page numbers which do not belong to a restored data base.
externPascal void bd10ShutdownConverter (tsp00_TaskId TaskId)
 Shuts the converter down.


Generated by  Doxygen 1.6.0   Back to index