mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
d4cf29525f
BOOL->bool FALSE->false TRUE->true u_int*_t->uint*_t Also poisoned all of the variables git-svn-id: file:///svn/toku/tokudb@46157 c7de825b-a66e-492c-adef-691d508d4ae1
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
|
|
|
|
#ifndef XIDS_INTERNAL_H
|
|
#define XIDS_INTERNAL_H
|
|
|
|
#ident "$Id$"
|
|
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
|
|
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
|
|
|
|
|
|
// Variable size list of transaction ids (known in design doc as xids<>).
|
|
// ids[0] is the outermost transaction.
|
|
// ids[num_xids - 1] is the innermost transaction.
|
|
// Should only be accessed by accessor functions xids_xxx, not directly.
|
|
|
|
// If the xids struct is unpacked, the compiler aligns the ids[] and we waste a lot of space
|
|
#if TOKU_WINDOWS
|
|
#pragma pack(push, 1)
|
|
#endif
|
|
|
|
typedef struct __attribute__((__packed__)) xids_t {
|
|
uint8_t num_xids; // maximum value of MAX_TRANSACTION_RECORDS - 1 ...
|
|
// ... because transaction 0 is implicit
|
|
TXNID ids[];
|
|
} XIDS_S;
|
|
|
|
#if TOKU_WINDOWS
|
|
#pragma pack(pop)
|
|
#endif
|
|
|
|
|
|
#endif
|