~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/mtr/mtr0mtr.c

  • Committer: Monty Taylor
  • Date: 2008-12-06 22:41:03 UTC
  • mto: (656.1.7 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: monty@inaugust.com-20081206224103-jdouqwt9hb0f01y1
Moved non-working tests into broken suite for easier running of working tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
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., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
1
/******************************************************
20
2
Mini-transaction buffer
21
3
 
 
4
(c) 1995 Innobase Oy
 
5
 
22
6
Created 11/26/1995 Heikki Tuuri
23
7
*******************************************************/
24
8
 
174
158
        ut_ad(mtr);
175
159
        ut_ad(mtr->magic_n == MTR_MAGIC_N);
176
160
        ut_ad(mtr->state == MTR_ACTIVE);
177
 
        ut_d(mtr->state = MTR_COMMITTING);
178
 
 
 
161
#ifdef UNIV_DEBUG
 
162
        mtr->state = MTR_COMMITTING;
 
163
#endif
179
164
        write_log = mtr->modifications && mtr->n_log_recs;
180
165
 
181
166
        if (write_log) {
196
181
                log_release();
197
182
        }
198
183
 
199
 
        ut_d(mtr->state = MTR_COMMITTED);
 
184
#ifdef UNIV_DEBUG
 
185
        mtr->state = MTR_COMMITTED;
 
186
#endif
200
187
        dyn_array_free(&(mtr->memo));
201
188
        dyn_array_free(&(mtr->log));
202
189
}
325
312
        const byte*     ptr,    /* in: pointer to buffer frame */
326
313
        ulint           type)   /* in: type of object */
327
314
{
328
 
        return(mtr_memo_contains(mtr, buf_block_align(ptr), type));
 
315
        ibool   ret;
 
316
 
 
317
        buf_pool_mutex_enter();
 
318
        ret = mtr_memo_contains(mtr, buf_block_align(ptr), type);
 
319
        buf_pool_mutex_exit();
 
320
        return(ret);
329
321
}
330
322
 
331
323
/*************************************************************