HistHookSelectErrorQRecords
- Last UpdatedJun 06, 2017
- 1 minute read
Description:
The HistHookSelectErrorQRecords function is called by the HistQReader for selecting a set of records based on the input parameter, bNewRecords. If bNewRecords is true, you can write a custom query to select the new records. If the value is false, you can write a custom query to select old records of the ErrorQ table.
New records are considered to be those records that have recently failed. The default implementation defines these new records as the records that are less than 10 minutes old and have not already failed 3 times. The HistQReader will retry these records at fairly frequent intervals, until they fall into the category of Old Records. The Old records will be retried less frequently.
Syntax
char* HistHookSelectErrorQRecords(BOOL bNewRecords)
Parameters:
-
bNewRecords
-
Type: Boolean
-
Description: Contains the value of the error records to be selected
-
Return Type: char*
This function returns a select query for the ErrorQ table of the BatchHistory database. The returned string must remain allocated (that is, it must return a static buffer).