A new field "reorg_sleep_nsec" is introduced in the database file header (sgmnt_data).
Any MUPIP REORG process will check this value and if non-zero will sleep for the
specified # of nanoseconds before processing every block in the database. This field
can be changed with a MUPIP SET -REORG_SLEEP_NSEC= command which can be run while
the reorg process is still running (i.e. the command does not require standalone access
to the database file). This lets the user try out different sleeps in the same reorg
process in case it runs for a long time.
DSE DUMP -FILE displays the current setting of reorg_sleep_nsec.
Because of the new field in the file header, the database minor version needed change.
And GTMDefinedTypesInit* files needed to be regenerated (to ensure PEEKBYNAME works
with the new field).
Changed MICROSEC_IN_SEC -> MICROSECS_IN_SEC to be consistent with MILLISECS_IN_SEC
and NANOSECS_IN_SEC.
Moved an assert about range of the input to the NANOSLEEP macro into the macro itself
so it is centralized instead of duplicated in callers of this macro.
Simplified sleep.h by removing code corresponding to unsupported platforms.
A new field "reorg_sleep_nsec" is introduced in the database file header (sgmnt_data). Any MUPIP REORG process will check this value and if non-zero will sleep for the specified # of nanoseconds before processing every block in the database. This field can be changed with a MUPIP SET -REORG_SLEEP_NSEC= command which can be run while the reorg process is still running (i.e. the command does not require standalone access to the database file). This lets the user try out different sleeps in the same reorg process in case it runs for a long time.
DSE DUMP -FILE displays the current setting of reorg_sleep_nsec.
Because of the new field in the file header, the database minor version needed change.
And GTMDefinedTypesInit* files needed to be regenerated (to ensure PEEKBYNAME works with the new field).
Changed MICROSEC_IN_SEC -> MICROSECS_IN_SEC to be consistent with MILLISECS_IN_SEC and NANOSECS_IN_SEC.
Moved an assert about range of the input to the NANOSLEEP macro into the macro itself so it is centralized instead of duplicated in callers of this macro.
Simplified sleep.h by removing code corresponding to unsupported platforms.