Skip to content

Commit f84f577

Browse files
committed
Merge tag 'mysql-5.5.44' into bb-5.5-serg
2 parents f07b346 + 31c803e commit f84f577

27 files changed

+233
-73
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
MYSQL_VERSION_MAJOR=5
22
MYSQL_VERSION_MINOR=5
3-
MYSQL_VERSION_PATCH=43
3+
MYSQL_VERSION_PATCH=44
44
MYSQL_VERSION_EXTRA=

cmake/make_dist.cmake.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2015, Oracle and/or its affiliates.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -60,9 +60,9 @@ IF(NOT GIT_EXECUTABLE)
6060

6161
# Save bison output first.
6262
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc.cc
63-
${CMAKE_BINARY_DIR}/sql_yacc.cc COPY_ONLY)
63+
${CMAKE_BINARY_DIR}/sql_yacc.cc COPYONLY)
6464
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc.h
65-
${CMAKE_BINARY_DIR}/sql_yacc.h COPY_ONLY)
65+
${CMAKE_BINARY_DIR}/sql_yacc.h COPYONLY)
6666

6767
IF(CMAKE_GENERATOR MATCHES "Makefiles")
6868
# make clean
@@ -74,9 +74,9 @@ IF(NOT GIT_EXECUTABLE)
7474

7575
# Restore bison output
7676
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql_yacc.cc
77-
${CMAKE_BINARY_DIR}/sql/sql_yacc.cc COPY_ONLY)
77+
${CMAKE_BINARY_DIR}/sql/sql_yacc.cc COPYONLY)
7878
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql_yacc.h
79-
${CMAKE_BINARY_DIR}/sql/sql_yacc.h COPY_ONLY)
79+
${CMAKE_BINARY_DIR}/sql/sql_yacc.h COPYONLY)
8080
FILE(REMOVE ${CMAKE_BINARY_DIR}/sql_yacc.cc)
8181
FILE(REMOVE ${CMAKE_BINARY_DIR}/sql_yacc.h)
8282
ENDIF()

cmd-line-utils/libedit/el_terminal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* $NetBSD: terminal.h,v 1.3 2011/07/29 23:44:45 christos Exp $ */
22

33
/*-
4-
* Copyright (c) 1992, 1993
4+
* Copyright (c) 1992, 2015
55
* The Regents of the University of California. All rights reserved.
66
*
77
* This code is derived from software contributed to Berkeley by
@@ -103,7 +103,7 @@ protected int terminal_settc(EditLine *, int, const Char **);
103103
protected int terminal_gettc(EditLine *, int, char **);
104104
protected int terminal_telltc(EditLine *, int, const Char **);
105105
protected int terminal_echotc(EditLine *, int, const Char **);
106-
protected void terminal_writec(EditLine *, Int);
106+
protected int terminal_writec(EditLine *, Int);
107107
protected int terminal__putc(EditLine *, Int);
108108
protected void terminal__flush(EditLine *);
109109

cmd-line-utils/libedit/emacs.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* $NetBSD: emacs.c,v 1.25 2011/07/29 15:16:33 christos Exp $ */
22

33
/*-
4-
* Copyright (c) 1992, 1993
4+
* Copyright (c) 1992, 2015
55
* The Regents of the University of California. All rights reserved.
66
*
77
* This code is derived from software contributed to Berkeley by
@@ -58,8 +58,10 @@ em_delete_or_list(EditLine *el, Int c)
5858
/* if I'm at the end */
5959
if (el->el_line.cursor == el->el_line.buffer) {
6060
/* and the beginning */
61-
terminal_writec(el, c); /* then do an EOF */
62-
return CC_EOF;
61+
if(!(terminal_writec(el, c))) /* then do an EOF */
62+
return CC_EOF;
63+
else
64+
return CC_ERROR;
6365
} else {
6466
/*
6567
* Here we could list completions, but it is an

cmd-line-utils/libedit/terminal.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* $NetBSD: terminal.c,v 1.10 2011/10/04 15:27:04 christos Exp $ */
22

33
/*-
4-
* Copyright (c) 1992, 1993
4+
* Copyright (c) 1992, 2015
55
* The Regents of the University of California. All rights reserved.
66
*
77
* This code is derived from software contributed to Berkeley by
@@ -1271,14 +1271,19 @@ terminal__flush(EditLine *el)
12711271
/* terminal_writec():
12721272
* Write the given character out, in a human readable form
12731273
*/
1274-
protected void
1274+
protected int
12751275
terminal_writec(EditLine *el, Int c)
12761276
{
12771277
Char visbuf[VISUAL_WIDTH_MAX +1];
12781278
ssize_t vcnt = ct_visual_char(visbuf, VISUAL_WIDTH_MAX, c);
1279-
visbuf[vcnt] = '\0';
1280-
terminal_overwrite(el, visbuf, (size_t)vcnt);
1281-
terminal__flush(el);
1279+
if(vcnt == -1)
1280+
return 1; /* Error due to insufficient space */
1281+
else {
1282+
visbuf[vcnt] = '\0';
1283+
terminal_overwrite(el, visbuf, (size_t)vcnt);
1284+
terminal__flush(el);
1285+
return 0;
1286+
}
12821287
}
12831288

12841289

cmd-line-utils/libedit/vi.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* $NetBSD: vi.c,v 1.41 2011/10/04 15:27:04 christos Exp $ */
22

33
/*-
4-
* Copyright (c) 1992, 1993
4+
* Copyright (c) 1992, 2015
55
* The Regents of the University of California. All rights reserved.
66
*
77
* This code is derived from software contributed to Berkeley by
@@ -607,8 +607,10 @@ vi_list_or_eof(EditLine *el, Int c)
607607

608608
if (el->el_line.cursor == el->el_line.lastchar) {
609609
if (el->el_line.cursor == el->el_line.buffer) {
610-
terminal_writec(el, c); /* then do a EOF */
611-
return CC_EOF;
610+
if(!(terminal_writec(el, c))) /* then do a EOF */
611+
return CC_EOF;
612+
else
613+
return CC_ERROR;
612614
} else {
613615
/*
614616
* Here we could list completions, but it is an

mysql-test/r/partition_innodb.result

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,33 +367,33 @@ DROP TABLE t1;
367367
create table t1 (a int) engine=innodb partition by hash(a) ;
368368
show table status like 't1';
369369
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
370-
t1 InnoDB 10 Compact 2 8192 16384 0 0 # NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
370+
t1 InnoDB 10 Compact 2 8192 16384 0 0 # NULL # NULL NULL latin1_swedish_ci NULL partitioned
371371
drop table t1;
372372
create table t1 (a int)
373373
engine = innodb
374374
partition by key (a);
375375
show table status;
376376
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
377-
t1 InnoDB 10 Compact 2 8192 16384 0 0 # NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
377+
t1 InnoDB 10 Compact 2 8192 16384 0 0 # NULL # NULL NULL latin1_swedish_ci NULL partitioned
378378
insert into t1 values (0), (1), (2), (3);
379379
show table status;
380380
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
381-
t1 InnoDB 10 Compact 4 4096 16384 0 0 # NULL NULL NULL NULL latin1_swedish_ci NULL partitioned
381+
t1 InnoDB 10 Compact 4 4096 16384 0 0 # NULL # NULL NULL latin1_swedish_ci NULL partitioned
382382
drop table t1;
383383
create table t1 (a int auto_increment primary key)
384384
engine = innodb
385385
partition by key (a);
386386
show table status;
387387
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
388-
t1 InnoDB 10 Compact 2 8192 16384 0 0 # 1 NULL NULL NULL latin1_swedish_ci NULL partitioned
388+
t1 InnoDB 10 Compact 2 8192 16384 0 0 # 1 # NULL NULL latin1_swedish_ci NULL partitioned
389389
insert into t1 values (NULL), (NULL), (NULL), (NULL);
390390
show table status;
391391
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
392-
t1 InnoDB 10 Compact 4 4096 16384 0 0 # 5 NULL NULL NULL latin1_swedish_ci NULL partitioned
392+
t1 InnoDB 10 Compact 4 4096 16384 0 0 # 5 # NULL NULL latin1_swedish_ci NULL partitioned
393393
insert into t1 values (NULL), (NULL), (NULL), (NULL);
394394
show table status;
395395
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
396-
t1 InnoDB 10 Compact 8 2048 16384 0 0 # 9 NULL NULL NULL latin1_swedish_ci NULL partitioned
396+
t1 InnoDB 10 Compact 8 2048 16384 0 0 # 9 # NULL NULL latin1_swedish_ci NULL partitioned
397397
drop table t1;
398398
create table t1 (a int)
399399
partition by key (a)
@@ -575,6 +575,17 @@ a b
575575
0 1
576576
DROP TABLE t1;
577577
#
578+
# Bug #17299181 CREATE_TIME AND UPDATE_TIME ARE
579+
# WRONG FOR PARTITIONED TABLES
580+
#
581+
CREATE TABLE t1 (a int, PRIMARY KEY (a)) ENGINE=InnoDB
582+
PARTITION BY HASH (a) PARTITIONS 2;
583+
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE
584+
CREATE_TIME IS NOT NULL AND TABLE_NAME='t1';
585+
COUNT(*)
586+
1
587+
DROP TABLE t1;
588+
#
578589
# BUG#12912171 - ASSERTION FAILED: QUICK->HEAD->READ_SET ==
579590
# SAVE_READ_SET
580591
#
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
2+
INSERT INTO t1 VALUES (1);
3+
XA START 'x';
4+
UPDATE t1 set a=2;
5+
XA END 'x';
6+
XA PREPARE 'x';
7+
call mtr.add_suppression("Found 1 prepared XA transactions");
8+
SELECT * FROM t1 LOCK IN SHARE MODE;
9+
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
10+
SELECT * FROM t1;
11+
a
12+
2
13+
XA ROLLBACK 'x';
14+
SELECT * FROM t1;
15+
a
16+
1
17+
DROP TABLE t1;
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
--source include/have_innodb.inc
2+
# Embedded server does not support restarting.
3+
--source include/not_embedded.inc
4+
5+
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
6+
INSERT INTO t1 VALUES (1);
7+
connect (con1,localhost,root);
8+
XA START 'x'; UPDATE t1 set a=2; XA END 'x'; XA PREPARE 'x';
9+
connection default;
10+
11+
call mtr.add_suppression("Found 1 prepared XA transactions");
12+
13+
# Kill and restart the server.
14+
-- exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
15+
-- shutdown_server 0
16+
-- source include/wait_until_disconnected.inc
17+
18+
-- exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
19+
-- enable_reconnect
20+
-- source include/wait_until_connected_again.inc
21+
-- disable_reconnect
22+
23+
disconnect con1;
24+
connect (con1,localhost,root);
25+
--send SELECT * FROM t1 LOCK IN SHARE MODE
26+
27+
connection default;
28+
let $wait_condition=
29+
select count(*) = 1 from information_schema.processlist
30+
where state = 'Sending data' and
31+
info = 'SELECT * FROM t1 LOCK IN SHARE MODE';
32+
--source include/wait_condition.inc
33+
34+
--source include/restart_mysqld.inc
35+
36+
disconnect con1;
37+
38+
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
39+
SELECT * FROM t1;
40+
XA ROLLBACK 'x';
41+
SELECT * FROM t1;
42+
43+
DROP TABLE t1;

mysql-test/suite/parts/r/partition_debug_sync_innodb.result

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ t1.frm
5858
t1.par
5959
SET DEBUG_SYNC='before_open_in_get_all_tables SIGNAL parked WAIT_FOR open';
6060
SET DEBUG_SYNC='partition_open_error SIGNAL alter WAIT_FOR finish';
61-
SELECT * FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
61+
SELECT TABLE_SCHEMA, TABLE_NAME, PARTITION_NAME, PARTITION_ORDINAL_POSITION,
62+
PARTITION_DESCRIPTION, TABLE_ROWS
63+
FROM INFORMATION_SCHEMA.PARTITIONS
64+
WHERE TABLE_NAME = 't1' AND TABLE_SCHEMA = 'test';
6265
SET DEBUG_SYNC = 'now WAIT_FOR parked';
6366
# When waiting for the name lock in get_all_tables in sql_show.cc
6467
# this will not be concurrent any more, thus the TIMEOUT
@@ -70,9 +73,9 @@ ALTER TABLE t1 REORGANIZE PARTITION p0 INTO
7073
PARTITION p10 VALUES LESS THAN MAXVALUE);
7174
Warnings:
7275
Warning 1639 debug sync point wait timed out
73-
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME PARTITION_ORDINAL_POSITION SUBPARTITION_ORDINAL_POSITION PARTITION_METHOD SUBPARTITION_METHOD PARTITION_EXPRESSION SUBPARTITION_EXPRESSION PARTITION_DESCRIPTION TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE CREATE_TIME UPDATE_TIME CHECK_TIME CHECKSUM PARTITION_COMMENT NODEGROUP TABLESPACE_NAME
74-
def test t1 p0 NULL 1 NULL RANGE NULL a NULL 10 1 16384 16384 NULL 0 0 NULL NULL NULL NULL default NULL
75-
def test t1 p10 NULL 2 NULL RANGE NULL a NULL MAXVALUE 3 5461 16384 NULL 0 0 NULL NULL NULL NULL default NULL
76+
TABLE_SCHEMA TABLE_NAME PARTITION_NAME PARTITION_ORDINAL_POSITION PARTITION_DESCRIPTION TABLE_ROWS
77+
test t1 p0 1 10 1
78+
test t1 p10 2 MAXVALUE 3
7679
t1#P#p0.ibd
7780
t1#P#p10.ibd
7881
t1.frm

0 commit comments

Comments
 (0)