version 2003
PA_GetLogInfo (logInfo)
Parameter | Type | Description | |
logInfo | PA_LogHeader * | Information on the current backup log |
Description
The routine PA_GetLogInfo returns information on the current logfile in the PA_LogHeader structure pointed to by logInfo.
The PA_LogHeader structure is defined in the header file "PublicTypes.h":
// a logfile starts with this structure, // then is followed by the number of PA_LogTag // described in fNbOperations. typedef struct PA_LogHeader { long fNbOperations; long fLastFlush; PA_long64 fLastAction; // a PA_Long64 is a __int64 or a long long PA_long64 fFirstAction; long fLogNumber; long fFiller; long fLastPos; } PA_LogHeader;
Example
Do something only if there are more than 1000 operations logged on the database.
PA_LogHeader lh; PA_GetLogInfo(&lh); if(lh.NbOperations > 1000 { /* . . . do something . . .*/ }
See Also
Error Handling
PA_GetLastError always returns eER_NoErr