mco_trans_rt_deadline_check

Prototype

    MCO_RET mco_trans_rt_deadline_check(mco_trans_h t);

Arguments

t
Transaction handle

Description

This function is a pre-defined callback implementation that indicates to the database kernel that the application is using the strict deadline policy. In order to enable the policy the application registers the callback via the mco_trans_rt_register_callback. The function returns MCO_E_INTERRUPT if the transaction’s flow time has exceeded the set deadline. The database is left in the logically inconsistent state and the only valid action against the database is to roll back the interrupted transaction with mco_trans_rollback.

Return Codes

MCO_S_OK
OK to continue the transaction
MCO_E_INTERRUPTED
The transaction’s flow time has exceeded the set deadline

Files

Header file:
mco.h
Source file:
mcotrans.c
Library:
libmcolib.a