~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "read0types.h"
19
19
#include "dict0types.h"
20
20
#include "trx0xa.h"
 
21
#include "ut0vec.h"
21
22
 
22
23
/* Dummy session used currently in MySQL interface */
23
24
extern sess_t*  trx_dummy_sess;
406
407
#define trx_is_interrupted(trx) FALSE
407
408
#endif /* !UNIV_HOTBACKUP */
408
409
 
 
410
/**************************************************************************
 
411
Determines if the currently running transaction is in innodb_strict_mode. */
 
412
UNIV_INTERN
 
413
ibool
 
414
trx_is_strict(
 
415
/*==========*/
 
416
                        /* out: TRUE if strict */
 
417
        trx_t*  trx);   /* in: transaction */
 
418
 
409
419
/***********************************************************************
410
420
Calculates the "weight" of a transaction. The weight of one transaction
411
421
is estimated as the number of altered rows + the number of locked rows.
592
602
                                        to srv_conc_innodb_enter, if the value
593
603
                                        here is > 0, we decrement this by 1 */
594
604
        /*------------------------------*/
595
 
        lock_t*         auto_inc_lock;  /* possible auto-inc lock reserved by
596
 
                                        the transaction; note that it is also
597
 
                                        in the lock list trx_locks */
598
605
        dict_index_t*   new_rec_locks[2];/* these are normally NULL; if
599
606
                                        srv_locks_unsafe_for_binlog is TRUE
600
607
                                        or session is using READ COMMITTED
726
733
        trx_undo_arr_t* undo_no_arr;    /* array of undo numbers of undo log
727
734
                                        records which are currently processed
728
735
                                        by a rollback operation */
 
736
        /*------------------------------*/
729
737
        ulint           n_autoinc_rows; /* no. of AUTO-INC rows required for
730
738
                                        an SQL statement. This is useful for
731
739
                                        multi-row INSERTs */
 
740
        ib_vector_t*    autoinc_locks;  /* AUTOINC locks held by this
 
741
                                        transaction. Note that these are
 
742
                                        also in the lock list trx_locks. This
 
743
                                        vector needs to be freed explicitly
 
744
                                        when the trx_t instance is desrtoyed */
732
745
        /*------------------------------*/
733
746
        char detailed_error[256];       /* detailed error message for last
734
747
                                        error, or empty. */