>Description:
Restarting doesn't connect to the master.
>How-To-Repeat:
mysql restart. show slave status. Read server log.
>Fix:
The master's file name still had a newline.
Index: noris.38/sql/slave.cc
--- noris.38/sql/slave.cc Thu, 25 Jan 2001 07:35:47 +0100 smurf
(database_mysql/O/b/39_slave.cc 1.9.1.2.1.1.1.1.1.2 664)
+++ noris.38(w)/sql/slave.cc Mon, 05 Feb 2001 21:16:57 +0100 smurf
+(database_mysql/O/b/39_slave.cc 1.9.1.2.1.1.1.1.1.2 664)
@@ -513,7 +513,7 @@
goto error;
}
- mi->log_file_name[length]= 0; // kill \n
+ mi->log_file_name[length-1]= 0; // kill \n
char buf[FN_REFLEN];
if(!my_b_gets(&mi->file, buf, sizeof(buf)))
{
>Submitter-Id: <submitter ID>
>Originator: Matthias Urlichs
>Organization:
>MySQL support: licence
>Synopsis: Restarting a slave didn't work
>Severity: serious
>Priority: high
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.32 (noris network MySQL)
>Environment:
System: Linux play.smurf.noris.de 2.4.0s-noris-t5-2 #58 SMP Wed Jul 19 10:24:19 CEST
2000 i686 unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)
Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='-DTHREAD_SAFE_CLIENT
-felide-constructors -fno-exceptions -fno-rtti' LDFLAGS=''
LIBC:
lrwxrwxrwx 1 root root 13 Jun 8 2000 /lib/libc.so.6 -> libc-2.1.3.so
-rwxr-xr-x 1 root root 4118299 Sep 20 1999 /lib/libc-2.1.2.so
-rwxr-xr-x 1 root root 4123003 Jun 8 2000 /lib/libc-2.1.3.so
-rw-r--r-- 1 root root 19203634 Jun 8 2000 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 Jun 8 2000 /usr/lib/libc.so
-rwxr-xr-x 1 root root 2042654 Oct 27 17:09 /usr/lib/libc-client.a
Configure command: ./configure --prefix=/usr --with-debug --enable-shared
--without-mit-threads --libexecdir=/usr/sbin --localstatedir=/var/mysql
--enable-thread-safe-client --sysconfdir=/etc --datadir=/usr/share
--enable-large-files --without-readline --with-mysqld-user=mysql
--with-unix-socket-path=/var/run/mysql.socket --enable-strcoll '--with-comment=noris
network MySQL' --with-docs --with-bench --without-berkeley-db --without-bench
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php