Skip to content

Commit

Permalink
Bug#23531973 CHANGE THE SERVER VERSION NUMBER ON TRUNK FROM 5.8 TO 8.0
Browse files Browse the repository at this point in the history
Changes:

- Update the version number in VERSION
- Update the version number in the Doxyfile
- Update the version number in INSTALL
- Version changes to packaging files
- Package the man page for the ibd2sdi utility
- Change the test for show_compatibility_56 in mysqld.cc
- Make mysqlbinlog understand log coming from an 8.0 server
- Fix version numbers in the innodb.log_corruption test
- Fix version number in the main.comments test
- Fix version number in a couple of memcached tests
- Fix version numbers in a few code / test files (comments)

Reviewed-by: Jon Olav Hauglid <[email protected]>
Reiviwed-by: Lars Tangvald <[email protected]>
Reviewed-by: Neha Kumari <[email protected]>
Reviewed-by: Terje Rosten <[email protected]>

RB: 12929
  • Loading branch information
dahlerlend committed Jun 16, 2016
1 parent e81addf commit 016c01c
Show file tree
Hide file tree
Showing 27 changed files with 66 additions and 49 deletions.
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ PROJECT_NAME = MySQL
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 5.8.0
PROJECT_NUMBER = 8.0.0

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
6 changes: 3 additions & 3 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Pre-built binaries in different package formats can be found on

You can find information about how to install from a source distribution at

http://dev.mysql.com/doc/refman/5.8/en/source-installation.html
http://dev.mysql.com/doc/refman/8.0/en/source-installation.html

The MySQL 5.8 Reference Manual is available on
The MySQL 8.0 Reference Manual is available on

http://dev.mysql.com/doc/refman/5.8/en/
http://dev.mysql.com/doc/refman/8.0/en/
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MYSQL_VERSION_MAJOR=5
MYSQL_VERSION_MINOR=8
MYSQL_VERSION_MAJOR=8
MYSQL_VERSION_MINOR=0
MYSQL_VERSION_PATCH=0
MYSQL_VERSION_EXTRA=-dmr
1 change: 1 addition & 0 deletions client/mysqlbinlog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,7 @@ static Exit_status check_master_version()
glob_description_event= new Format_description_log_event(3);
break;
case '5':
case '8':
/*
The server is soon going to send us its Format_description log
event, unless it is a 5.0 server with 3.23 or 4.0 binlogs.
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/r/comments.result
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ERROR 42000: Query was empty
select 1 /*!32301 +1 */;
1 +1
2
select 1 /*!52301 +1 */;
select 1 /*!999999 +1 */;
1
1
select 1--1;
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/r/ctype_unicode800.result
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DROP TABLE IF EXISTS t1;
#
# Start of 5.8 tests
# Start of 8.0 tests
#
#
# WL#9125: Add utf8mb4_800_ci_ai
Expand Down Expand Up @@ -942,5 +942,5 @@ a = b
1
DROP TABLE t1;
#
# End of 5.8 tests
# End of 8.0 tests
#
2 changes: 1 addition & 1 deletion mysql-test/r/mysql_ssl.result
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ End of 5.7 tests
#
# WL#9091: Remove --ssl, --ssl-verify-server-cert client-side options
#
End of 5.8 tests
End of 8.0 tests
2 changes: 1 addition & 1 deletion mysql-test/suite/innodb/r/log_corruption.result
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# --innodb-force-recovery=6 (skip the entire redo log)
# valid header, valid checkpoint 1, all-zero (invalid) checkpoint 2, invalid block number
# --innodb-force-recovery=6 (skip the entire redo log)
# valid 5.8.0 header, valid checkpoint 1, all-zero (invalid) checkpoint 2, invalid block checksum
# valid 8.0.0 header, valid checkpoint 1, all-zero (invalid) checkpoint 2, invalid block checksum
# --innodb-force-recovery=6 (skip the entire redo log)
# valid 5.7.9 header, valid checkpoint 1, no matching MLOG_CHECKSUM
# --innodb-force-recovery=6 (skip the entire redo log)
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/innodb/t/log_corruption.test
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let SEARCH_PATTERN=InnoDB: Invalid redo log header checksum;
--exec unzip $MYSQL_TEST_DIR/suite/innodb/t/log_corruption2.zip -d $newdir > $SEARCH_FILE
--error 1
--exec $MYSQLD $args
let SEARCH_PATTERN=InnoDB: Unsupported redo log format. The redo log was created with malicious intentions, or perhaps\\. Please follow the instructions at http://dev.mysql.com/doc/refman/5.8/en/upgrading-downgrading.html;
let SEARCH_PATTERN=InnoDB: Unsupported redo log format. The redo log was created with malicious intentions, or perhaps\\. Please follow the instructions at http://dev.mysql.com/doc/refman/8.0/en/upgrading-downgrading.html;
--source include/search_pattern_in_file.inc

--echo # redo log from MySQL 5.7.9, with corrupted log checkpoint
Expand Down Expand Up @@ -79,7 +79,7 @@ let SEARCH_PATTERN=Data Dictionary initialization failed;
let SEARCH_PATTERN=InnoDB: Cannot create sys_virtual system tables. running in read-only mode;
--source include/search_pattern_in_file.inc

--echo # valid 5.8.0 header, valid checkpoint 1, all-zero (invalid) checkpoint 2, invalid block checksum
--echo # valid 8.0.0 header, valid checkpoint 1, all-zero (invalid) checkpoint 2, invalid block checksum
--remove_file $newdir/ib_logfile0
--exec unzip $MYSQL_TEST_DIR/suite/innodb/t/log_corruption4b.zip -d $newdir > $SEARCH_FILE
--error 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down Expand Up @@ -1085,7 +1085,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down Expand Up @@ -1266,7 +1266,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down
12 changes: 6 additions & 6 deletions mysql-test/suite/memcached/r/memc293_ibd2sdi.result
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down Expand Up @@ -1159,11 +1159,11 @@ affiliates. Other names may be trademarks of their respective
owners.

Usage: IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-#, --debug[=name] Output debug log. See
http://dev.mysql.com/doc/refman/5.8/en/dbug-package.html
http://dev.mysql.com/doc/refman/8.0/en/dbug-package.html
-d, --dump-file=name
Dump the tablespace SDI into the file passed by user.
Without the filename, it will default to stdout
Expand Down Expand Up @@ -1776,7 +1776,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down Expand Up @@ -1912,7 +1912,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down Expand Up @@ -2054,7 +2054,7 @@ affiliates. Other names may be trademarks of their respective
owners.

IBD2SDI [-v] [-c <strict-check>] [-d <dump file name>] [-n] filename1 [filenames]
See http://dev.mysql.com/doc/refman/5.8/en/ibd2sdi.html for usage hints.
See http://dev.mysql.com/doc/refman/8.0/en/ibd2sdi.html for usage hints.
-h, --help Display this help and exit.
-v, --version Display version information and exit.
-d, --dump-file=name
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/memcached/t/memc293_ibd2sdi.test
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ let MEMCACHED_TABLE_MAPPING = desc_t3;

## header contains version/platform information
--replace_result $IBD2SDI IBD2SDI
--replace_regex /; Ver 5.*$//
--replace_regex /; Ver 8.*$//
--error 1
--exec $IBD2SDI 2>&1

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/t/comments.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ multi line comment */;
--error 1065
;
select 1 /*!32301 +1 */;
select 1 /*!52301 +1 */;
select 1 /*!999999 +1 */;
select 1--1;
# Note that the following returns 4 while it should return 2
# This is because the mysqld server doesn't parse -- comments
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/t/ctype_unicode800.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DROP TABLE IF EXISTS t1;
--enable_warnings

--echo #
--echo # Start of 5.8 tests
--echo # Start of 8.0 tests
--echo #

--echo #
Expand Down Expand Up @@ -100,5 +100,5 @@ SELECT a = b FROM t1;
DROP TABLE t1;

--echo #
--echo # End of 5.8 tests
--echo # End of 8.0 tests
--echo #
2 changes: 1 addition & 1 deletion mysql-test/t/mysql_ssl.test
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
--error 2
--exec $MYSQL --ssl-verify-server-cert

--echo End of 5.8 tests
--echo End of 8.0 tests

# Wait till all disconnects are completed
--source include/wait_until_count_sessions.inc
Expand Down
4 changes: 2 additions & 2 deletions packaging/deb-in/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ IF (NOT DEFINED DEB_CODENAME)
ENDIF()
# Commercial or community
IF (DEB_PRODUCT STREQUAL "commercial")
SET (DEB_COPYRIGHT_UPSTREAMNAME "MySQL Commercial Server 5.8")
SET (DEB_COPYRIGHT_UPSTREAMNAME "MySQL Commercial Server 8.0")
SET (DEB_PRODUCTNAME "commercial")
SET (DEB_PRODUCTNAMEC "Commercial")
SET (DEB_LICENSENAME "Advanced")
Expand Down Expand Up @@ -60,7 +60,7 @@ usr/lib/mysql/plugin/debug/firewall.so
SET (DEB_REMOVEPATTERN "gpl.in")
ELSE()
SET (DEB_PRODUCT "community")
SET (DEB_COPYRIGHT_UPSTREAMNAME "MySQL Server 5.8")
SET (DEB_COPYRIGHT_UPSTREAMNAME "MySQL Server 8.0")
SET (DEB_PRODUCTNAME "community")
SET (DEB_PRODUCTNAMEC "Community")
SET (DEB_LICENSENAME "GPL")
Expand Down
8 changes: 7 additions & 1 deletion packaging/rpm-fedora/mysql.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
%global license_type GPLv2
%endif

%global min 5.8.0
%global min 8.0.0

Name: mysql-%{product_suffix}
Summary: A very fast and reliable SQL database server
Expand Down Expand Up @@ -546,6 +546,7 @@ datadir=$(/usr/bin/my_print_defaults server mysqld | grep '^--datadir=' | sed -n
%doc release/Docs/INFO_BIN*
%doc release/support-files/my-default.cnf
%attr(644, root, root) %{_mandir}/man1/innochecksum.1*
%attr(644, root, root) %{_mandir}/man1/ibd2sdi.1*
%attr(644, root, root) %{_mandir}/man1/my_print_defaults.1*
%attr(644, root, root) %{_mandir}/man1/myisam_ftdump.1*
%attr(644, root, root) %{_mandir}/man1/myisamchk.1*
Expand Down Expand Up @@ -849,6 +850,11 @@ datadir=$(/usr/bin/my_print_defaults server mysqld | grep '^--datadir=' | sed -n
%attr(755, root, root) %{_libdir}/mysql/libmysqld.so

%changelog
=======
* Thu Jun 05 2016 Erlend Dahl <[email protected]> - 8.0.0-0.1
- Change the version number to 8.0.0
- Add manual page for ibd2sdi utility

* Fri Jun 03 2016 Balasubramanian Kandasamy <[email protected]> - 5.8.0-0.1
- Updated compatver to 5.6.31
- Add example component to test package
Expand Down
7 changes: 6 additions & 1 deletion packaging/rpm-oel/mysql.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
%global license_type GPLv2
%endif

%global min 5.8.0
%global min 8.0.0

Name: mysql-%{product_suffix}
Summary: A very fast and reliable SQL database server
Expand Down Expand Up @@ -674,6 +674,7 @@ fi
%doc release/Docs/INFO_BIN*
%doc release/support-files/my-default.cnf
%attr(644, root, root) %{_mandir}/man1/innochecksum.1*
%attr(644, root, root) %{_mandir}/man1/ibd2sdi.1*
%attr(644, root, root) %{_mandir}/man1/my_print_defaults.1*
%attr(644, root, root) %{_mandir}/man1/myisam_ftdump.1*
%attr(644, root, root) %{_mandir}/man1/myisamchk.1*
Expand Down Expand Up @@ -1016,6 +1017,10 @@ fi
%attr(755, root, root) %{_libdir}/mysql/libmysqld.so

%changelog
* Thu Jun 05 2016 Erlend Dahl <[email protected]> - 8.0.0-0.1
- Change the version number to 8.0.0
- Add manual page for ibd2sdi utility

* Fri Jun 03 2016 Balasubramanian Kandasamy <[email protected]> - 5.8.0-0.1
- Updated compatver to 5.6.31
- Add example component to test package
Expand Down
7 changes: 6 additions & 1 deletion packaging/rpm-sles/mysql.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
%{?sles12: %global systemd 1}
%{!?_tmpfilesdir: %global _tmpfilesdir /usr/lib/tmpfiles.d}

%global min 5.8.0
%global min 8.0.0

Name: mysql-%{product_suffix}
Summary: A very fast and reliable SQL database server
Expand Down Expand Up @@ -563,6 +563,7 @@ fi
%doc release/Docs/INFO_BIN*
%doc release/support-files/my-default.cnf
%attr(644, root, root) %{_mandir}/man1/innochecksum.1*
%attr(644, root, root) %{_mandir}/man1/ibd2sdi.1*
%attr(644, root, root) %{_mandir}/man1/my_print_defaults.1*
%attr(644, root, root) %{_mandir}/man1/myisam_ftdump.1*
%attr(644, root, root) %{_mandir}/man1/myisamchk.1*
Expand Down Expand Up @@ -894,6 +895,10 @@ fi
%attr(755, root, root) %{_libdir}/mysql/libmysqld.so

%changelog
* Thu Jun 05 2016 Erlend Dahl <[email protected]> - 8.0.0-0.1
- Change the version number to 8.0.0
- Add manual page for ibd2sdi utility

* Fri Jun 03 2016 Balasubramanian Kandasamy <[email protected]> - 5.8.0-0.1
- Add example component to test package
- Add test_udf_services.so plugin
Expand Down
2 changes: 1 addition & 1 deletion sql/dd/impl/cache/shared_dictionary_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Shared_dictionary_cache
private:
// We have 223 collations, 41 character sets and 4535 spatial
// reference systems after initializing the server, as of MySQL
// 5.8.0.
// 8.0.0.
static const size_t collation_capacity= 256;
static const size_t charset_capacity= 64;
static const size_t event_capacity= 256;
Expand Down
2 changes: 1 addition & 1 deletion sql/field.h
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ class Field: public Proto_field, public Sql_alloc
@sa Field::enum_auto_flags for possible options.
@sa Field::utype and Field::unireg_check in pre-5.8 versions of server
@sa Field::utype and Field::unireg_check in pre-8.0 versions of server
for historical perspective.
*/
uchar auto_flags;
Expand Down
4 changes: 2 additions & 2 deletions sql/gen_lex_token.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
This is done to ensure stability in digest computed values.
As of now (5.8.0), the mapping looks like this:
As of now (8.0.0), the mapping looks like this:
- [0 .. 255] character terminal tokens.
- [256 .. 907] non terminal tokens from sql_yacc.yy
- [908 .. 999] reserved for sql_yacc.yy new tokens
Expand Down Expand Up @@ -334,7 +334,7 @@ static void compute_tokens()
tok_hint_comment_close= max_token_seen++;
set_token(tok_hint_comment_close, HINT_COMMENT_TERMINATOR);

/* New in 5.8 */
/* New in 8.0 */

tok_in_generic_value_expression= max_token_seen++;
set_token(tok_in_generic_value_expression, "IN (...)");
Expand Down
10 changes: 5 additions & 5 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
For other sections, only links are provided, as a starting point into the component.
For the user manual, see http://dev.mysql.com/doc/refman/5.8/en/
For the user manual, see http://dev.mysql.com/doc/refman/8.0/en/
For the internals manual, see https://dev.mysql.com/doc/internals/en/index.html
*/
Expand All @@ -44,7 +44,7 @@
@section start_source Build from source
See https://dev.mysql.com/doc/refman/5.8/en/source-installation.html
See https://dev.mysql.com/doc/refman/8.0/en/source-installation.html
@section start_debug Debugging
Expand Down Expand Up @@ -625,15 +625,15 @@ my_thread_handle shutdown_thr_handle;
uint host_cache_size;
ulong log_error_verbosity= 3; // have a non-zero value during early start-up

#if MYSQL_VERSION_ID >= 50801
#error "show_compatibility_56 is to be removed in MySQL 5.8"
#if MYSQL_VERSION_ID >= 80001
#error "show_compatibility_56 is to be removed in MySQL 8.0"
#else
/*
Default value TRUE for the EMBEDDED_LIBRARY,
default value from Sys_show_compatibility_56 otherwise.
*/
my_bool show_compatibility_56= TRUE;
#endif /* MYSQL_VERSION_ID >= 50800 */
#endif /* MYSQL_VERSION_ID >= 80001 */

#if defined(_WIN32) && !defined(EMBEDDED_LIBRARY)
ulong slow_start_timeout;
Expand Down
Loading

0 comments on commit 016c01c

Please sign in to comment.