prg_log_max_file_rows_set()
Abstract
Sets the maximum number of rows allowed per data file.
Syntax
prg_log_max_file_rows_set (log_store_hndl, max_file_rows)
| Argument | Type | Description |
|---|---|---|
log_store_hndl |
PrgT_Log_Store_Handle |
Log store of interest. |
max_file_rows |
int |
Maximum number of rows per data file. |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if set successfully; PrgC_Compcode_Failure otherwise.
Header
prg_log.h
Details
This functions sets the maximum number of rows that the log will store in each data (.ot) file. By default, a data file will contain a maximum of 1000 rows.
If the current data file exceeds the limit being set by this function, that file will be closed and a new one opened.