tcapdemo data structures

The following table describes the data structures that are called by tcapdemo:

Structure

Description

ChkPntMsg

The checkpoint message structure transfers transaction information from the primary application to the backup application:

typedef struct checkPointMsg
{
    U32 msgId;     /* message Id                          */
    U32 position;  /* position in "command.800" file      */
    U32 transId;   /* transaction Id                      */
    U8  invokeId;  /* invoke Id                           */
    U8  readFlag;  /* flaf for reading "command.800" file */
} ChkPntMsg;

Trans

The transaction structure passes information between threads by passing a pointer to an event in the buffer member of a CTA_EVENT structure:

typedef struct trans
{
    U32 position;
    U32 transId;
    U8  invokeId;
    U8  readFlag;
} Trans;