KI_TABLE_SYNC

Flush cached blocks to disk

Synopsis:
CALL KI_TABLE_SYNC handle TO status
status = 'ki_table_sync( handle )
ArgumentEnumerationPurpose
handleHandle
statusKDB_ERROR_ENUMReturn status
>KI_TABLE_SYNC

KI_TABLE_SYNC

For KDB and KISAM tables this call can be used to force Unix to flush any modified blocks in the table out of the buffer cache and onto the disk. It will not return until this has happened. If the handle is zero then it will do this for all open tables.

It has no effect on Windows which lacks this functionality.

For SQL databases like Oracle this call has no effect and will always return KE_SUCCESS if called on an open handle.

History
Introduced in KCML 6.90
See Also:
KI_BEGIN, KI_COMMIT, KI_LOG_SYNC, KI_ROLLBACK, KI_SET_MODE, KI_SNAPSHOT
KCML database status codes