~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merge in Stewart's FK work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
133
133
Rollback or clean up any incomplete transactions which were
134
134
encountered in crash recovery.  If the transaction already was
135
135
committed, then we clean up a possible insert undo log. If the
136
 
transaction was not yet committed, then we roll it back. */
137
 
UNIV_INTERN
138
 
void
139
 
trx_rollback_or_clean_recovered(
140
 
/*============================*/
141
 
        ibool   all);   /*!< in: FALSE=roll back dictionary transactions;
142
 
                        TRUE=roll back all non-PREPARED transactions */
143
 
/*******************************************************************//**
144
 
Rollback or clean up any incomplete transactions which were
145
 
encountered in crash recovery.  If the transaction already was
146
 
committed, then we clean up a possible insert undo log. If the
147
136
transaction was not yet committed, then we roll it back.
148
137
Note: this is done in a background thread.
149
138
@return a dummy parameter */
219
208
trx_general_rollback_for_mysql(
220
209
/*===========================*/
221
210
        trx_t*          trx,    /*!< in: transaction handle */
 
211
        ibool           partial,/*!< in: TRUE if partial rollback requested */
222
212
        trx_savept_t*   savept);/*!< in: pointer to savepoint undo number, if
223
 
                                partial rollback requested, or NULL for
224
 
                                complete rollback */
 
213
                                partial rollback requested */
225
214
/*******************************************************************//**
226
215
Rolls back a transaction back to a named savepoint. Modifications after the
227
216
savepoint are undone but InnoDB does NOT release the corresponding locks