~ubuntu-branches/ubuntu/quantal/mysql-5.5/quantal-security

« back to all changes in this revision

Viewing changes to storage/innobase/trx/trx0purge.c

  • Committer: Package Import Robot
  • Author(s): Seth Arnold
  • Date: 2013-04-18 18:15:39 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20130418181539-7uo1w041b4h2ulbs
Tags: 5.5.31-0ubuntu0.12.10.1
* SECURITY UPDATE: Update to 5.5.31 to fix security issues (LP: #1170516)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2013-1899555.html
* debian/patches/71_disable_rpl_tests.patch: refreshed.
* debian/patches/fix-mysqldump-test.patch: removed, fixed differently
  upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
UNIV_INTERN mysql_pfs_key_t     purge_sys_bh_mutex_key;
62
62
#endif /* UNIV_PFS_MUTEX */
63
63
 
 
64
#ifdef UNIV_DEBUG
 
65
UNIV_INTERN my_bool             srv_purge_view_update_only_debug;
 
66
#endif /* UNIV_DEBUG */
 
67
 
64
68
/*****************************************************************//**
65
69
Checks if trx_id is >= purge_view: then it is guaranteed that its update
66
70
undo log still exists in the system.
236
240
        purge_sys->purge_trx_no = 0;
237
241
        purge_sys->purge_undo_no = 0;
238
242
        purge_sys->next_stored = FALSE;
 
243
        ut_d(purge_sys->done_trx_no = 0);
239
244
 
240
245
        rw_lock_create(trx_purge_latch_key,
241
246
                       &purge_sys->latch, SYNC_PURGE_LATCH);
656
661
{
657
662
        static ulint    count;
658
663
 
 
664
#ifdef UNIV_DEBUG
 
665
        if (purge_sys->arr->n_used == 0) {
 
666
                purge_sys->done_trx_no = purge_sys->purge_trx_no;
 
667
        }
 
668
#endif /* UNIV_DEBUG */
 
669
 
659
670
        if (!(++count % TRX_SYS_N_RSEGS) && purge_sys->arr->n_used == 0) {
660
671
 
661
672
                trx_purge_truncate_history();
1173
1184
 
1174
1185
        rw_lock_x_unlock(&(purge_sys->latch));
1175
1186
 
 
1187
#ifdef UNIV_DEBUG
 
1188
        if (srv_purge_view_update_only_debug) {
 
1189
                return(0);
 
1190
        }
 
1191
#endif
 
1192
 
1176
1193
        purge_sys->state = TRX_PURGE_ON;
1177
1194
 
1178
1195
        purge_sys->handle_limit = purge_sys->n_pages_handled + limit;