From c4feaafdcbcd197bdd6b647a8f75a11a89fdb00b Mon Sep 17 00:00:00 2001 From: "joerg@mysql.com" <> Date: Mon, 7 Mar 2005 16:23:55 +0100 Subject: [PATCH 01/17] Avoid empty build (failure) mails on Solaris (backport from 4.1). --- Build-tools/Do-compile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Build-tools/Do-compile b/Build-tools/Do-compile index 1f83a9a37e1..5756d06a116 100755 --- a/Build-tools/Do-compile +++ b/Build-tools/Do-compile @@ -617,16 +617,20 @@ sub abort if ($opt_user) { - $mail_header_file="$opt_tmp/do-command.$$"; - open(TMP,">$mail_header_file"); + # Take the last 40 lines of the build log + open(LOG, "$log") or die $!; + my @log= ; + close LOG; + splice @log => 0, -40; + my $mail_file="$opt_tmp/do-command.$$"; + open(TMP,">$mail_file") or die $!; print TMP "From: mysqldev\@$full_host_name\n"; print TMP "To: $email\n"; print TMP "Subject: $host($uname): $ver$opt_version_suffix compilation failed\n\n"; + print TMP @log; close TMP; - system("tail -n 40 $log > $log.mail"); - system("cat $mail_header_file $log.mail | $sendmail -t -f $email"); - unlink($mail_header_file); - unlink("$log.mail"); + system("$sendmail -t -f $email < $mail_file"); + unlink($mail_file); } exit 1; } From 00449b8f9c6fdb87caf7c5e683e605db4a3fee78 Mon Sep 17 00:00:00 2001 From: "gluh@gluh.mysql.r18.ru" <> Date: Mon, 7 Mar 2005 18:56:18 +0300 Subject: [PATCH 02/17] Fix for bug#8978 : Crash on 'select format ...' --- sql/item_strfunc.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index aeb63d6af00..ec88f58aa93 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1465,7 +1465,8 @@ Item_func_format::Item_func_format(Item *org,int dec) :Item_str_func(org) String *Item_func_format::val_str(String *str) { double nr =args[0]->val(); - uint32 diff,length,str_length; + uint32 length,str_length; + int diff; uint dec; if ((null_value=args[0]->null_value)) return 0; /* purecov: inspected */ @@ -1483,17 +1484,17 @@ String *Item_func_format::val_str(String *str) if (str_length >= dec+4) { char *tmp,*pos; - length= str->length()+(diff=(str_length- dec-1)/3); + length= str->length()+(diff= (int)(str_length- dec-1)/3); str= copy_if_not_alloced(&tmp_str,str,length); str->length(length); tmp= (char*) str->ptr()+length - dec-1; for (pos= (char*) str->ptr()+length-1; pos != tmp; pos--) - pos[0]= pos[-(int) diff]; + pos[0]= pos[-diff]; while (diff) { - pos[0]=pos[-(int) diff]; pos--; - pos[0]=pos[-(int) diff]; pos--; - pos[0]=pos[-(int) diff]; pos--; + pos[0]=pos[-diff]; pos--; + pos[0]=pos[-diff]; pos--; + pos[0]=pos[-diff]; pos--; pos[0]=','; pos--; diff--; From beea918092222adc26faac6d123c2c9019cd55bb Mon Sep 17 00:00:00 2001 From: "marko@hundin.mysql.fi" <> Date: Tue, 8 Mar 2005 11:12:18 +0200 Subject: [PATCH 03/17] InnoDB: Win64 portability fix: add missing declaration and correct the definition of srv_max_buf_pool_modified_pct. --- innobase/include/srv0srv.h | 1 + innobase/srv/srv0srv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/innobase/include/srv0srv.h b/innobase/include/srv0srv.h index 30dd3db7bb1..e18ceb32bbe 100644 --- a/innobase/include/srv0srv.h +++ b/innobase/include/srv0srv.h @@ -101,6 +101,7 @@ extern ibool srv_use_doublewrite_buf; extern ibool srv_set_thread_priorities; extern int srv_query_thread_priority; +extern ulong srv_max_buf_pool_modified_pct; extern ulong srv_max_purge_lag; /*-------------------------------------------*/ diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c index 5c5d62f777b..6ac8727ee26 100644 --- a/innobase/srv/srv0srv.c +++ b/innobase/srv/srv0srv.c @@ -165,7 +165,7 @@ in the buffer pool to all database pages in the buffer pool smaller than the following number. But it is not guaranteed that the value stays below that during a time of heavy update/insert activity. */ -ulint srv_max_buf_pool_modified_pct = 90; +ulong srv_max_buf_pool_modified_pct = 90; /* If the following is != 0 we do not allow inserts etc. This protects the user from forgetting the innodb_force_recovery keyword to my.cnf */ From 8948e774f611211f7136ed1493d9d011145dbad5 Mon Sep 17 00:00:00 2001 From: "lenz@mysql.com" <> Date: Tue, 8 Mar 2005 11:42:21 +0100 Subject: [PATCH 04/17] - bumped up version number in configure.in from 4.0.24 -> 4.0.25 (ChangeSet 1.2073 was already tagged as 4.0.24) --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 8b8c0690a55..36473de7ad1 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(sql/mysqld.cc) AC_CANONICAL_SYSTEM # The Docs Makefile.am parses this line! -AM_INIT_AUTOMAKE(mysql, 4.0.24) +AM_INIT_AUTOMAKE(mysql, 4.0.25) AM_CONFIG_HEADER(config.h) PROTOCOL_VERSION=10 From 63d01ae103c5fb93ba26b1b030ec0a56e38ffcfb Mon Sep 17 00:00:00 2001 From: "marko@hundin.mysql.fi" <> Date: Tue, 8 Mar 2005 17:08:17 +0200 Subject: [PATCH 05/17] dict0load.c: dict_load_table(): Remove the check for row_format=compact for now, because the flag bit we used (high-order bit of mix_len) has not been zero for at least two customers. --- innobase/dict/dict0load.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/innobase/dict/dict0load.c b/innobase/dict/dict0load.c index 0bbf0511b57..a4637e09d07 100644 --- a/innobase/dict/dict0load.c +++ b/innobase/dict/dict0load.c @@ -647,22 +647,6 @@ dict_load_table( return(NULL); } -#if MYSQL_VERSION_ID < 50300 - /* Starting from MySQL 5.0.3, the high-order bit of MIX_LEN is the - "compact format" flag. */ - field = rec_get_nth_field(rec, 7, &len); - if (mach_read_from_1(field) & 0x80) { - btr_pcur_close(&pcur); - mtr_commit(&mtr); - mem_heap_free(heap); - ut_print_timestamp(stderr); - fprintf(stderr, - " InnoDB: table %s is in the new compact format\n" - "InnoDB: of MySQL 5.0.3 or later\n", name); - return(NULL); - } -#endif /* MYSQL_VERSION_ID < 50300 */ - ut_a(0 == ut_strcmp((char *) "SPACE", dict_field_get_col( dict_index_get_nth_field( From a9c062eba00f1b6de55a70fe4ee944642552afd6 Mon Sep 17 00:00:00 2001 From: "jani@ua141d10.elisa.omakaista.fi" <> Date: Tue, 8 Mar 2005 18:18:53 +0200 Subject: [PATCH 06/17] Netware build environment script related patch. --- netware/BUILD/mwenv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netware/BUILD/mwenv b/netware/BUILD/mwenv index 88491446c43..674c148a399 100755 --- a/netware/BUILD/mwenv +++ b/netware/BUILD/mwenv @@ -7,13 +7,13 @@ export MYDEV="F:/mydev" export MWCNWx86Includes="$MYDEV/libc/include;$MYDEV/fs64/headers;$MYDEV/zlib-1.1.4;$MYDEV" -export MWNWx86Libraries="$MYDEV/libc/imports;$MYDEV/mw/lib;$MYDEV/fs64/imports;$MYDEV/zlib-1.1.4;$MYDEV/mysql-4.0.21/netware/BUILD" +export MWNWx86Libraries="$MYDEV/libc/imports;$MYDEV/mw/lib;$MYDEV/fs64/imports;$MYDEV/zlib-1.1.4;$MYDEV/mysql-VERSION/netware/BUILD" export MWNWx86LibraryFiles="libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib;libz.a;neb.imp;zPublics.imp;knetware.imp" export WINEPATH="$MYDEV/mw/bin" # the default added path is "$HOME/mydev/mysql-x.x-x/netware/BUILD" -export PATH="$PATH:/home/kp/mydev/mysql-4.0.21/netware/BUILD" +export PATH="$PATH:BUILD_DIR/mysql-VERSION/netware/BUILD" export AR='mwldnlm' export AR_FLAGS='-type library -o' From e3d32c9e2dfc36c20936e1e51eda8de09e7d69cc Mon Sep 17 00:00:00 2001 From: "paul@kite-hub.kitebird.com" <> Date: Tue, 8 Mar 2005 10:43:44 -0600 Subject: [PATCH 07/17] Add dummy changelog file. It should merge upward without conflict. --- Docs/changelog-4.0.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 Docs/changelog-4.0.xml diff --git a/Docs/changelog-4.0.xml b/Docs/changelog-4.0.xml new file mode 100755 index 00000000000..fc33b3fdb5e --- /dev/null +++ b/Docs/changelog-4.0.xml @@ -0,0 +1,18 @@ + + + + + + + Changes in release 4.0.x + + + + This is a dummy changelog file. Don't use it yet. + + + From 323d1356847bd4e1b9ad6e3eb46217f054f9cf3b Mon Sep 17 00:00:00 2001 From: "paul@kite-hub.kitebird.com" <> Date: Tue, 8 Mar 2005 11:49:56 -0600 Subject: [PATCH 08/17] changelog-4.0.xml: Fix bad root element name in DOCTYPE. Sheesh. --- Docs/changelog-4.0.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/changelog-4.0.xml b/Docs/changelog-4.0.xml index fc33b3fdb5e..f0f9aa881f1 100755 --- a/Docs/changelog-4.0.xml +++ b/Docs/changelog-4.0.xml @@ -1,5 +1,5 @@ -