~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/trx/trx0sys.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "trx0rseg.h"
38
38
#include "trx0undo.h"
39
39
#include "srv0srv.h"
 
40
#include "srv0start.h"
40
41
#include "trx0purge.h"
41
42
#include "log0log.h"
42
43
#include "os0file.h"
1548
1549
trx_sys_close(void)
1549
1550
/*===============*/
1550
1551
{
 
1552
        trx_t*          trx;
1551
1553
        trx_rseg_t*     rseg;
1552
1554
        read_view_t*    view;
1553
1555
 
1554
1556
        ut_ad(trx_sys != NULL);
 
1557
        ut_ad(srv_shutdown_state == SRV_SHUTDOWN_EXIT_THREADS);
1555
1558
 
1556
1559
        /* Check that all read views are closed except read view owned
1557
1560
        by a purge. */
1583
1586
        mem_free(trx_doublewrite);
1584
1587
        trx_doublewrite = NULL;
1585
1588
 
 
1589
        /* Only prepared transactions may be left in the system. Free them. */
 
1590
        ut_a(UT_LIST_GET_LEN(trx_sys->trx_list) == trx_n_prepared);
 
1591
 
 
1592
        while ((trx = UT_LIST_GET_FIRST(trx_sys->trx_list)) != NULL) {
 
1593
                trx_free_prepared(trx);
 
1594
        }
 
1595
 
1586
1596
        /* There can't be any active transactions. */
1587
1597
        rseg = UT_LIST_GET_FIRST(trx_sys->rseg_list);
1588
1598