Merge lp:~percona-dev/percona-server/bug692211 into lp:percona-server/release-5.1.54-12

Proposed by Alexey Kopytov
Status: Merged
Approved by: Vadim Tkachenko
Approved revision: no longer in the source branch.
Merged at revision: 181
Proposed branch: lp:~percona-dev/percona-server/bug692211
Merge into: lp:percona-server/release-5.1.54-12
Diff against target: 53 lines (+35/-1)
1 file modified
innodb_lru_dump_restore.patch (+35/-1)
To merge this branch: bzr merge lp:~percona-dev/percona-server/bug692211
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+44487@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

can we add mysql-test for it ?

review: Needs Fixing
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

ok, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'innodb_lru_dump_restore.patch'
2--- innodb_lru_dump_restore.patch 2010-12-16 11:35:26 +0000
3+++ innodb_lru_dump_restore.patch 2010-12-22 18:27:11 +0000
4@@ -5,6 +5,40 @@
5 #!!! notice !!!
6 # Any small change to this file in the main branch
7 # should be done or reviewed by the maintainer!
8+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
9++++ b/mysql-test/suite/innodb_plugin/r/percona_bug692211.result 2010-12-22 20:48:19.000000000 +0300
10+@@ -0,0 +1,7 @@
11++#
12++# LP bug #692211: innodb_auto_lru_dump crashes if ib_lru_dump doesn't
13++# exist
14++#
15++SELECT @@innodb_auto_lru_dump;
16++@@innodb_auto_lru_dump
17++300
18+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
19++++ b/mysql-test/suite/innodb_plugin/t/percona_bug692211-master.opt 2010-12-22 20:25:59.000000000 +0300
20+@@ -0,0 +1 @@
21++--innodb_auto_lru_dump=300
22+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
23++++ b/mysql-test/suite/innodb_plugin/t/percona_bug692211.test 2010-12-22 20:17:57.000000000 +0300
24+@@ -0,0 +1,17 @@
25++--source include/have_innodb_plugin.inc
26++
27++--echo #
28++--echo # LP bug #692211: innodb_auto_lru_dump crashes if ib_lru_dump doesn't
29++--echo # exist
30++--echo #
31++
32++SELECT @@innodb_auto_lru_dump;
33++
34++# We want to check that the server does not crash on startup when there is no
35++# ib_lru_dump in the datadir. If we are here, we have already started up
36++# successfully. So we only have to check that there is no ib_lru_dump in the
37++# datadir.
38++
39++--let $MYSQLD_DATADIR= `SELECT @@datadir`
40++--error 1
41++--file_exists $MYSQLD_DATADIR/ib_lru_dump;
42 diff -ruN a/storage/innodb_plugin/buf/buf0lru.c b/storage/innodb_plugin/buf/buf0lru.c
43 --- a/storage/innodb_plugin/buf/buf0lru.c 2010-08-27 16:13:11.070058073 +0900
44 +++ b/storage/innodb_plugin/buf/buf0lru.c 2010-08-27 16:34:33.860400549 +0900
45@@ -155,7 +189,7 @@
46 + ulint req = 0;
47 + ibool terminated = FALSE;
48 + ibool ret = FALSE;
49-+ dump_record_t* records;
50++ dump_record_t* records = NULL;
51 + ulint size;
52 + ulint size_high;
53 + ulint length;

Subscribers

People subscribed via source and target branches

to all changes: