| /*------------------------------------------------------------------------- |
| * |
| * cdbpublic.h |
| * |
| * Greenplum specific structures and typedefs exposed to the |
| * outside world. |
| * |
| * This is a non-ideal solution, consider alternatives before |
| * adding to this file. |
| * |
| * Portions Copyright (c) 2008-2008, Greenplum inc. |
| * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. |
| * |
| * |
| * IDENTIFICATION |
| * src/include/cdb/cdbpublic.h |
| * |
| *------------------------------------------------------------------------- |
| */ |
| |
| /* This file should not include any other files under "cdb" */ |
| |
| #ifndef CDBPUBLIC_H |
| #define CDBPUBLIC_H |
| |
| #include "c.h" /* DistributedTransactionId */ |
| |
| typedef struct TMGXACT_CHECKPOINT |
| { |
| int committedCount; |
| /* Array [0..committedCount-1] of DistributedTransactionId begins here */ |
| DistributedTransactionId committedGxidArray[1]; |
| } TMGXACT_CHECKPOINT; |
| |
| #define TMGXACT_CHECKPOINT_BYTES(committedCount) \ |
| (offsetof(TMGXACT_CHECKPOINT, committedGxidArray) + sizeof(DistributedTransactionId) * (committedCount)) |
| |
| #endif |
| |