Merge lp:~akopytov/percona-server/bug1247305-5.5 into lp:percona-server/5.5

Proposed by Alexey Kopytov on 2013-11-05
Status: Merged
Approved by: Laurynas Biveinis on 2013-11-25
Approved revision: 589
Merged at revision: 597
Proposed branch: lp:~akopytov/percona-server/bug1247305-5.5
Merge into: lp:percona-server/5.5
Diff against target: 19 lines (+8/-0)
1 file modified
Percona-Server/storage/innobase/trx/trx0trx.c (+8/-0)
To merge this branch: bzr merge lp:~akopytov/percona-server/bug1247305-5.5
Reviewer Review Type Date Requested Status
Vlad Lesin (community) g2 2013-11-05 Approve on 2013-11-25
Review via email: mp+193923@code.launchpad.net

Description of the change

    Bug #1247305: InnoDB: Assertion failure in thread <nr> in file trx0trx.c
                  line 180

    Acquire kernel_mutex to satisfy a debug assertion in
    trx_release_descriptor() when calling it from
    trx_cleanup_at_db_startup().

http://jenkins.percona.com/view/PS%205.5/job/percona-server-5.5-param/893/

To post a comment you must log in.
Vlad Lesin (vlad-lesin) :
review: Approve (g2)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Percona-Server/storage/innobase/trx/trx0trx.c'
2--- Percona-Server/storage/innobase/trx/trx0trx.c 2013-09-06 13:24:59 +0000
3+++ Percona-Server/storage/innobase/trx/trx0trx.c 2013-11-05 13:24:28 +0000
4@@ -1306,7 +1306,15 @@
5 }
6
7 trx->state = TRX_NOT_STARTED;
8+
9+ /* This code is executed in a single threaded context, but we acquire
10+ kernel_mutex to satisfy a debug assertion in
11+ trx_release_descriptor(). */
12+
13+ mutex_enter(&kernel_mutex);
14 trx_release_descriptor(trx);
15+ mutex_exit(&kernel_mutex);
16+
17 trx->rseg = NULL;
18 trx->undo_no = 0;
19 trx->last_sql_stat_start.least_undo_no = 0;

Subscribers

People subscribed via source and target branches