~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/trx0trx.h

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:21:52 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114052152-xnvlbrzvy3bx1ucd
add some FIXME to analyze docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "trx0xa.h"
39
39
#include "ut0vec.h"
40
40
 
41
 
namespace drizzled { class Session; }
42
 
 
43
41
/** Dummy session used currently in MySQL interface */
44
42
extern sess_t*  trx_dummy_sess;
45
43
 
72
70
        trx_t*  trx,    /*!< in: transaction struct */
73
71
        FILE*   file);  /*!< in: file to read message from */
74
72
/****************************************************************//**
75
 
Checks if the commit id should be logged to the sys header file
76
 
@return TRUE if the commit id should be logged */ 
77
 
UNIV_INLINE
78
 
ibool
79
 
trx_log_commit_id(
80
 
/*==============*/
81
 
        const trx_t*    trx);   /*!< in: trx object */
82
 
/****************************************************************//**
83
73
Retrieves the error_info field from a trx.
84
74
@return the error info */
85
75
UNIV_INLINE
555
545
        table_id_t      table_id;       /*!< Table to drop iff dict_operation
556
546
                                        is TRUE, or 0. */
557
547
        /*------------------------------*/
558
 
        drizzled::Session *mysql_thd;   /*!< MySQL thread handle corresponding
 
548
        void*           mysql_thd;      /*!< MySQL thread handle corresponding
559
549
                                        to this trx, or NULL */
560
550
        const char*     mysql_log_file_name;
561
551
                                        /* if MySQL binlog is used, this field
715
705
        /*------------------------------*/
716
706
        char detailed_error[256];       /*!< detailed error message for last
717
707
                                        error, or empty. */
718
 
 
719
 
        ibool           log_commit_id;  /*!< log the commit id to the sys
720
 
                                        file */
721
 
        inline drizzled::Session *session()
722
 
        {
723
 
          return mysql_thd;
724
 
        }
725
 
        inline drizzled::Session *session() const
726
 
        {
727
 
          return mysql_thd;
728
 
        }
729
708
};
730
709
 
731
710
#define TRX_MAX_N_THREADS       32      /* maximum number of