1. 07 Dec, 2000 1 commit
    • unknown's avatar
      rpl000001 sporadic failure mystery solved - the table was being opened twice :-) · e0c7c731
      unknown authored
      BitKeeper/etc/ignore:
        Added mysql-test/var/slave-data/mysql-bin.001 mysql-test/var/slave-data/mysql-bin.002 mysql-test/var/slave-data/mysql-bin.003 mysql-test/var/slave-data/mysql-bin.004 mysql-test/var/slave-data/mysql-bin.005 mysql-test/var/slave-data/mysql-bin.006 mysql-test/var/slave-data/mysql-bin.007 mysql-test/var/slave-data/mysql-bin.008 mysql-test/var/slave-data/mysql-bin.009 mysql-test/var/slave-data/mysql-bin.010 mysql-test/var/slave-data/mysql-bin.011 mysql-test/var/slave-data/mysql-bin.012 mysql-test/var/slave-data/mysql-bin.013 mysql-test/var/slave-data/mysql-bin.014 mysql-test/var/slave-data/mysql-bin.index to the ignore list
      mysql-test/mysql-test-run:
        re-added --log-bin --log-slave updates to slave startup options
      sql/slave.cc:
        fixed bug in LOAD DATA INFILE replication
      e0c7c731
  2. 02 Dec, 2000 2 commits
    • unknown's avatar
      fix for SunPro CC · 1be872a7
      unknown authored
      1be872a7
    • unknown's avatar
      added loops and other cool stuff to mysqltest · c95e3cd2
      unknown authored
      fixed slave to preserve temp tables on slave stop; slave start
      added abort-slave-event-count option to mysqld to test the above
      added a test case for temp tables with a contantly aborting slave
      removed warning in sql_parse.cc
      fixed thimble.cc to compile
      
      
      BitKeeper/etc/ignore:
        Added client/thimble support-files/mysql-3.23.29-gamma.spec to the ignore list
      client/mysqltest.c:
        added while, let, and echo, added fractional sec sleep support
      client/thimble.cc:
        fixes to make it compile
      mysql-test/t/3.23/rpl000001.test:
        sleep less
      mysql-test/t/3.23/rpl000002.test:
        sleep less
      mysql-test/t/3.23/rpl000003.test:
        sleep less
      mysql-test/t/3.23/rpl000005.test:
        sleep less
      sql/mysqld.cc:
        --abort-slave-event count
      sql/slave.cc:
        remember temp tables when slave thread termintates and restore them on
        slave start
      sql/slave.h:
        --abort-slave-event-count
      sql/sql_parse.cc:
        remove warning
      c95e3cd2
  3. 28 Nov, 2000 1 commit
    • unknown's avatar
      pointer casts -> int4store() · 0f9e884d
      unknown authored
      added error code to master failed connect message
      
      
      BitKeeper/etc/ignore:
        Added libmysql_r/acconfig.h libmysql_r/array.c libmysql_r/bchange.c libmysql_r/bmove.c libmysql_r/bmove_upp.c libmysql_r/charset.c libmysql_r/conf_to_src.c libmysql_r/ctype_autoconf.c libmysql_r/ctype-big5.c libmysql_r/ctype.c libmysql_r/ctype-czech.c libmysql_r/ctype-euc_kr.c libmysql_r/ctype-gb2312.c libmysql_r/ctype-gbk.c libmysql_r/ctype-sjis.c libmysql_r/ctype-tis620.c libmysql_r/ctype-ujis.c libmysql_r/dbug.c libmysql_r/default.c libmysql_r/dll.c libmysql_r/errmsg.c libmysql_r/errors.c libmysql_r/getopt1.c libmysql_r/getopt.c libmysql_r/get_password.c libmysql_r/getvar.c libmysql_r/int2str.c libmysql_r/is_prefix.c libmysql_r/libmysql.c libmysql_r/list.c libmysql_r/llstr.c libmysql_r/longlong2str.c libmysql_r/mf_casecnv.c libmysql_r/mf_dirname.c libmysql_r/mf_fn_ext.c libmysql_r/mf_format.c libmysql_r/mf_loadpath.c libmysql_r/mf_pack.c libmysql_r/mf_path.c libmysql_r/mf_tempfile.c libmysql_r/mf_unixpath.c libmysql_r/mf_wcomp.c libmysql_r/mulalloc.c libmysql_r/my_alloc.c libmysql_r/my_compress.c libm
      sql/share/romanian/errmsg.sys:
        touched again
      sql/slave.cc:
        print error code on failed connects
      sql/sql_base.cc:
        use int4store() instead of direct ponter casts
      libmysql_r/acconfig.h:
        ***MISSING WEAVE***
      0f9e884d
  4. 26 Nov, 2000 1 commit
    • unknown's avatar
      Fixed temp tables to work with replication. It will not work if you stop the slave · 5fa4731e
      unknown authored
      while slave thread has temp tables - not hard to fix though, but it is time to go to bed
      
      added a new test case for temp table replication and Slave_open_temp_tables
      status variable.
      
      Misc fixes
      
      
      client/mysqltest.c:
        added disconnect command
      mysql-test/create-test-result:
        fixed bugs so it actually works
      mysql-test/t/include/master-slave.inc:
        establish alternate connections to master and slave
      sql/mysql_priv.h:
        Slave_open_temp_tables
      sql/mysqlbinlog.cc:
        fixed a bug in reading local binlogs
      sql/mysqld.cc:
        added Slave_open_temp_tables status variable
      sql/slave.cc:
        fixed freed memory reference in the error message
      sql/sql_class.cc:
        slave_proxy_id
      sql/sql_class.h:
        slave_proxy_id
      sql/sql_parse.cc:
        small optimization - reorder eval in &&
      BitKeeper/etc/ignore:
        Added mysql-test/r/3.23/rpl000001.b.result.reject mysql-test/r/3.23/rpl000012.result.reject to the ignore list
      sql/sql_table.cc:
        added THD arg to rename_temporary_table
      sql/unireg.h:
        the table_cache_key is now 4 bytes longer
      5fa4731e
  5. 25 Nov, 2000 1 commit
    • unknown's avatar
      slave master.info FILE -> IO_CACHE · e56c9536
      unknown authored
      send_file() is more stack-friendly - changed large static buffer to alloc_root()
      fixed my_b_seek() to work with WRITE_CACHE
      test case to make sure the slave starts correctly after being stopped
      truncated words file so the replication tests will take less time
      
      
      mysql-test/r/3.23/rpl000001.b.result:
        truncated words file
      mysql-test/r/3.23/rpl000004.b.result:
        truncated words file
      mysql-test/std_data/words:
        truncated words file
      BitKeeper/etc/ignore:
        Added mysql-test/rpl000011.test mysql-test/var/lib/mysql-bin.007 sql/share/norwegian/errmsg.sys sql/share/norwegian-ny/errmsg.sys to the ignore list
      mysys/mf_iocache2.c:
        got my_b_seek() to work with WRITE_CACHE, at least the one used by the slave
      sql/share/romanian/errmsg.sys:
        accidently touched the file
      sql/slave.cc:
        converted FILE to IO_CACHE for master.info
      sql/slave.h:
        FILE -> IO_CACHE for master.info
      sql/sql_repl.cc:
        be nice to the stack - change a large stack buffer to be alloced with
        alloc_root in send_file()
      e56c9536
  6. 23 Nov, 2000 1 commit
    • unknown's avatar
      All statements are now run in a sub transaction · d22ad8c1
      unknown authored
      Give warning if we are using non transactional tables and do ROLLBACK
      Porting of crash-me and benchmarks to FrontBase
      
      
      Docs/manual.texi:
        Updates for 3.23.29
      include/mysqld_error.h:
        New error messages
      sql-bench/Data/ATIS/fconnection.txt:
        Name change because 'connection' was a reserved word in FrontBase
      sql-bench/bench-init.pl.sh:
        Port to FrontBase
      sql-bench/crash-me.sh:
        Port to FrontBase
      sql-bench/server-cfg.sh:
        Port to FrontBase
      sql-bench/test-ATIS.sh:
        Port to FrontBase
      sql-bench/test-alter-table.sh:
        Port to FrontBase
      sql-bench/test-big-tables.sh:
        Port to FrontBase
      sql-bench/test-connect.sh:
        Port to FrontBase
      sql-bench/test-create.sh:
        Port to FrontBase
      sql-bench/test-insert.sh:
        Port to FrontBase
      sql-bench/test-select.sh:
        Port to FrontBase
      sql-bench/test-wisconsin.sh:
        Port to FrontBase
      sql/ha_berkeley.cc:
        All statements are now run in a sub transaction
      sql/ha_berkeley.h:
        All statements are now run in a sub transaction
      sql/handl...
      d22ad8c1
  7. 22 Nov, 2000 1 commit
    • unknown's avatar
      mysql-test/mysql-test-run · 73adaadb
      unknown authored
          cleanup - remove unneeded daeamon restarts
      sql/log_event.cc
          fixed bug - do not confuse confused slaves even further if they try to 
          read less than LOG_EVENT_HEADER_LEN before the end of file
      sql/mysqlbinlog.cc
          give error if constructor fails
      sql/mysqld.cc
          --disconnect-slave-event-count for replication debugging
      sql/slave.cc
          --disconnect-slave-event-count
          cleanup to remove unneeded sleeps when things go wrong - sleep only 
          when we have to
      sql/slave.h
          --disconnect-slave-event-count
      
      test cases for ALTER TABLE ORDER BY and replication offset off by 22 
      confusion mystery bug (both pass)
      
      
      mysql-test/mysql-test-run:
        cleanup - remove unneeded daeamon restarts
      sql/log_event.cc:
        fixed bug - do not confuse confused slaves even further if they try to 
        read less than LOG_EVENT_HEADER_LEN before the end of file
      sql/mysqlbinlog.cc:
        give error if constructor fails
      sql/mysqld.cc:
        --disconnect-slave-event-count for replication debugging
      sql/slave.cc:
        --disconnect-slave-event-count
        cleanup to remove unneeded sleeps when things go wrong - sleep only 
        when we have to
      sql/slave.h:
        --disconnect-slave-event-count
      sql/sql_repl.cc:
        added unknown error
      73adaadb
  8. 21 Nov, 2000 1 commit
    • unknown's avatar
      fixed warning in sql_class.cc · 4222359a
      unknown authored
      added gdb support, mysqld options per test, and other cool stuff to mysql-test-run
      added --replicate-wild-do/ignore-table
      more test cases
      
      
      client/mysqltest.c:
        fixed a reject file bug
      mysql-test/mysql-test-run:
        support for gdb and running only one test case
      sql/mysql_priv.h:
        wild_compare needs to be global
      sql/mysqld.cc:
        --replicate-wild-do/ignore-table
      sql/slave.cc:
        wild,wild
      sql/slave.h:
        wild fixes
      sql/sql_class.cc:
        fixed compiler warning
      sql/sql_string.cc:
        wild stuff needs to be global
      BitKeeper/etc/ignore:
        Added BitKeeper/tmp/gone mysql-test/r/3.23/rpl mysql-test/r/3.23/rpl.reject mysql-test/var/lib/bar/bar.frm mysql-test/var/lib/bar/bar.MYD mysql-test/var/lib/bar/bar.MYI mysql-test/var/lib/foo/foo.frm mysql-test/var/lib/foo/foo.MYD mysql-test/var/lib/foo/foo.MYI mysql-test/var/lib/test/bar.frm mysql-test/var/lib/test/bar.MYD mysql-test/var/lib/test/bar.MYI mysql-test/var/lib/test/choo.frm mysql-test/var/lib/test/choo.MYD mysql-test/var/lib/test/choo.MYI mysql-test/var/slave-data/bar/bar.frm mysql-test/var/slave-data/bar/bar.MYD mysql-test/var/slave-data/bar/bar.MYI mysql-test/var/slave-data/foo/foo.frm mysql-test/var/slave-data/foo/foo.MYD mysql-test/var/slave-data/foo/foo.MYI mysql-test/var/slave-data/test/bar.frm mysql-test/var/slave-data/test/bar.MYD mysql-test/var/slave-data/test/bar.MYI mysql-test/var/slave-data/test/choo.frm mysql-test/var/slave-data/test/choo.MYD mysql-test/var/slave-data/test/choo.MYI mysql-test/var/tmp/README to the ignore list
      4222359a
  9. 18 Nov, 2000 3 commits
    • unknown's avatar
      one more fix for Intvar 22 offset mystery bug · 20b31233
      unknown authored
      sql/slave.cc:
        mi->pending needed a reset in one more place
      20b31233
    • unknown's avatar
      fixed bugs in delayed insert replication and when slave loses connection after... · 38a375b6
      unknown authored
      fixed bugs in delayed insert replication and when slave loses connection after Int_var but before Query
      public test suite now tests replication code as well
      
      
      mysql-test/mybin/mysql-test_install_db:
        fixes to test replication with two daemons on one machine
      mysql-test/mysql-test-run:
        fixes for replication tests -- still need to test gcov, the rest works
      mysql-test/t/include/master-slave.inc:
        include file for replication tests
      sql/slave.cc:
        fixed bug for the case when the slave loses connection after it has read Int_var event but before Query
      sql/sql_insert.cc:
        reset error in delayed thread
        slave converts delayed insert to regular
      38a375b6
    • unknown's avatar
      Portability fixes · 934769c7
      unknown authored
      Docs/manual.texi:
        Updated links and added more examples
      client/mysql.cc:
        Added --timeout + merge of Jani:s changes
      isam/_dynrec.c:
        Fixed bug when making big rows 1 byte smaller
      scripts/mysqlhotcopy.sh:
        Added regexp handling of filenames
      sql-bench/test-insert.sh:
        More order by tests
      sql/mf_iocache.cc:
        Cleanup
      sql/mysqld.cc:
        Moved my_delete() to before master thread died
      sql/sql_parse.cc:
        Fixed wrong comparison
      934769c7
  10. 17 Nov, 2000 2 commits
    • unknown's avatar
      sql/log.cc · 09a8c608
      unknown authored
          fixed bug in find_first_log
      sql/mysqlbinlog.cc
          flose file only if we opened it
      sql/slave.cc
          changed spacing
      sql/sql_repl.cc
          fixed error message
      
      
      sql/log.cc:
        fixed bug in find_first_log
      sql/mysqlbinlog.cc:
        flose file only if we opened it
      sql/slave.cc:
        changed spacing
      sql/sql_repl.cc:
        fixed error message
      BitKeeper/etc/ignore:
        Added repl-tests/test-repl/foo-dump-slave.master. repl-tests/test-repl/sum-wlen-slave.master. repl-tests/test-repl/sum-wlen-slave.master.re to the ignore list
      09a8c608
    • unknown's avatar
      Fixes for bugs in the usage of IO_CACHE · fcf743ef
      unknown authored
      Docs/manual.texi:
        Fixed the TRUNCATE syntax + Changelog
      include/my_sys.h:
        Added my_b_vprintf
      mysys/mf_iocache2.c:
        Added my_b_vprintf
      mysys/my_vsnprintf.c:
        Fixed fatal (new) bug
      mysys/thr_lock.c:
        Cleanup
      readline/bind.c:
        cleanup
      scripts/Makefile.am:
        Added mysqldumpslow
      sql-bench/crash-me.sh:
        Fixed TRUNCATE
      sql/log.cc:
        bug fix
      sql/log_event.cc:
        Removed compiler warnings
      sql/log_event.h:
        Fixed non portable header in binary dump
      sql/mf_iocache.cc:
        cleanup
      sql/mysqld.cc:
        Fixed loop problem on NT
      sql/slave.cc:
        cleanup
      sql/sql_class.cc:
        Fixed typos
      sql/sql_parse.cc:
        cleanup
      sql/sql_select.cc:
        bugfix
      sql/sql_table.cc:
        cleanup
      sql/sql_yacc.yy:
        Changed ALTER TABLE ... ORDER BY to get fewer warnings
      sql/unireg.cc:
        cleanup
      sql/unireg.h:
        Added missing define
      fcf743ef
  11. 15 Nov, 2000 1 commit
    • unknown's avatar
      sql/slave.cc · 8d9f0360
      unknown authored
           fixed bug - mutex was not being released if master.info could not be read
      
      
      
      sql/slave.cc:
         fixed bug - mutex was not being released if master.info could not be read
      8d9f0360
  12. 14 Nov, 2000 1 commit
    • unknown's avatar
      repl-tests/test-repl-ts/repl-timestamp.master.reject · 9ae57b8c
      unknown authored
          this file needs to be deleted
      sql/log_event.cc
          fixed warnings
      sql/log_event.h
          fixed () #define bug
      sql/mysqlbinlog.cc
          fixed length argument - was supposed to be one less
      sql/mysqld.cc
          replicate-do/ignore-table now works, wild does not yet
      sql/mysql_priv.h
          updating argument to add_table_to_list() -- needed for replicate-do/ignore table
      sql/slave.cc
          changes fore replicate-do/ignore-table
          close the socket before going to sleep sleeping after error
          bad event was being freed too early
      sql/slave.h
          changes for replicate-do/ignore-table
      sql/sql_class.cc
          slave_thread variable to THD
      sql/sql_class.h
          added slave_thread to THD, fixed bug in end_time()
      sql/sql_parse.cc
          updating argument to add_tables_to_list()
      sql/sql_table.cc
          fixed bug in mysql_rm_table()
      sql/sql_yacc.yy
          fixed up add_table_to_list() calls to accept updating argument
      sql/table.h
          added updating to TABLE_LIST
      
      
      repl-tests/test-repl-ts/repl-timestamp.master.reject:
        this file needs to be deleted
      sql/log_event.cc:
        fixed warnings
      sql/log_event.h:
        fixed () #define bug
      sql/mysql_priv.h:
        updating argument to add_table_to_list() -- needed for replicate-do/ignore table
      sql/mysqlbinlog.cc:
        fixed length argument - was supposed to be one less
      sql/mysqld.cc:
        replicate-do/ignore-table now works, wild does not yet
      sql/slave.cc:
        changes fore replicate-do/ignore-table
        close the socket before going to sleep sleeping after error
        bad event was being freed too early
      sql/slave.h:
        changes for replicate-do/ignore-table
      sql/sql_class.cc:
        slave_thread variable to THD
      sql/sql_class.h:
        added slave_thread to THD, fixed bug in end_time()
      sql/sql_parse.cc:
        updating argument to add_tables_to_list()
      sql/sql_table.cc:
        fixed bug in mysql_rm_table()
      sql/sql_yacc.yy:
        fixed up add_table_to_list() calls to accept updating argument
      sql/table.h:
        added updating to TABLE_LIST
      9ae57b8c
  13. 11 Nov, 2000 1 commit
    • unknown's avatar
      laptop commit, syncing with the repostitory. Fixed some bad bugs in replication · d738500e
      unknown authored
      BUILD/compile-pentium-debug:
        added -DEXTRA_DEBUG
      sql/Makefile.am:
        added slave.h
      sql/log_event.h:
        max_buf -> event_len in read_log_event
      sql/mysql_priv.h:
        moved the slave part to slave.h
      sql/mysqld.cc:
        changes for replcate_do/ignore_table ( does not work yet)
      sql/slave.cc:
        removed the stuff covered by slave.h
      sql/sql_class.h:
        moved slave stuff to slave.h
      sql/sql_repl.h:
        removed stuff covered by slave.h
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      d738500e
  14. 07 Nov, 2000 1 commit
    • unknown's avatar
      sql/item_strfunc.cc · a17b923d
      unknown authored
          fixed coredump in concat_ws
      sql/item_strfunc.h
          fixed coredump in concat_ws
      sql/mini_client.cc
          added mc_mysql_error()
      sql/mini_client.h
          added mc_mysql_errno()
      sql/mysqlbinlog.cc
          fixed bug in --postion for local files
      sql/slave.cc
          more verbose message on bad net reads
      sql/sql_repl.cc
          send errno on error in mysql_binlog_send
      
      
      sql/item_strfunc.cc:
        fixed coredump in concat_ws
      sql/item_strfunc.h:
        fixed coredump in concat_ws
      sql/mini_client.cc:
        added mc_mysql_error()
      sql/mini_client.h:
        added mc_mysql_errno()
      sql/mysqlbinlog.cc:
        fixed bug in --postion for local files
      BitKeeper/etc/ignore:
        Added client/.mysqladmin.c.swp to the ignore list
      sql/slave.cc:
        more verbose message on bad net reads
      sql/sql_repl.cc:
        send errno on error in mysql_binlog_send
      a17b923d
  15. 04 Nov, 2000 1 commit
    • unknown's avatar
      sql/slave.cc · ae85f5f2
      unknown authored
          mutex now initialized in the constructor
      sql/sql_class.h
          intialize MASTER_INFO mutex in the constructor
      sql/sql_repl.cc
          fixed typo in error message
          if the user does not specify offset in CHANGE MASTER TO, set it to skip magic number
      repl-tests/test-repl-ts/repl-timestamp.master.reject
          New BitKeeper file ``repl-tests/test-repl-ts/repl-timestamp.master.reject''
      
      
      BitKeeper/etc/ignore:
        Added repl-tests/test-repl-ts/repl-timestamp.master.reject to the ignore list
      sql/slave.cc:
        mutex now initialized in the constructor
      sql/sql_class.h:
        intialize MASTER_INFO mutex in the constructor
      sql/sql_repl.cc:
        fixed typo in error message
        if the user does not specify offset in CHANGE MASTER TO, set it to skip magic number
      ae85f5f2
  16. 29 Oct, 2000 1 commit
    • unknown's avatar
      libmysql/libmysql.c · 19a3899e
      unknown authored
          keep vio from being freed twice when we are low on memory
      mysys/safemalloc.c
          changes for --safemalloc-mem-limit
      sql/mini_client.cc
          keep vio from being freed twice
      sql/mysqld.cc
          changes for --safemalloc-mem-limit
      sql/slave.cc
          prevent closing connection twice
      sql/sql_string.h
          shrink() did not work right when my_realloc() failed
      
      
      BitKeeper/etc/ignore:
        Added .gdb_history to the ignore list
      libmysql/libmysql.c:
        keep vio from being freed twice when we are low on memory
      mysys/safemalloc.c:
        changes for --safemalloc-mem-limit
      sql/mini_client.cc:
        keep vio from being freed twice
      sql/mysqld.cc:
        changes for --safemalloc-mem-limit
      sql/slave.cc:
        prevent closing connection twice
      sql/sql_string.h:
        shrink() did not work right when my_realloc() failed
      19a3899e
  17. 28 Oct, 2000 1 commit
    • unknown's avatar
      mysys/mf_format.c · e23e0712
      unknown authored
          workaround for SCO realpath() bug
      sql/slave.cc
          fixed memory leak when slave runs bad query
      
      
      mysys/mf_format.c:
        workaround for SCO realpath() bug
      sql/slave.cc:
        fixed memory leak when slave runs bad query
      e23e0712
  18. 21 Oct, 2000 2 commits
    • unknown's avatar
      sql/slave.cc · 2d78b56a
      unknown authored
          cosmetic change
      sql/slave.cc@1.49
          cosmetic change
      
      
      sql/slave.cc:
        cosmetic change
      2d78b56a
    • unknown's avatar
      sql/slave.cc · 1a8e5250
      unknown authored
          buffer size fix + template instatiation
      
      
      BitKeeper/etc/ignore:
        Added BitKeeper/etc/csets-in support-files/mysql-3.23.26-beta.spec to the ignore list
      sql/slave.cc:
        buffer size fix + template instatiation
      1a8e5250
  19. 08 Oct, 2000 1 commit
    • unknown's avatar
      Docs/manual.texi · cc89cd45
      unknown authored
          replication updates
      sql/opt_range.h
          fixed compiler warning
      sql/slave.cc
          fixed handling of long usernames
          fixed insert_id + query log event processing atomicity in the case
          of slave death
          fix edcharset coversion to not be global to all threads
      sql/sql_class.h
          fix to make insert_id event and the subsequent query event be still processed
          atomically if slave dies in the middle
      sql/sql_select.cc
          temp fix to make it compile 
      repl-tests/test-auto-inc/run.test@1.1
          New BitKeeper file ``repl-tests/test-auto-inc/run.test''
      repl-tests/test-auto-inc/x.master@1.1
          New BitKeeper file ``repl-tests/test-auto-inc/x.master''
      
      
      
      Docs/manual.texi:
        replication updates
      sql/opt_range.h:
        fixed compiler warning
      sql/slave.cc:
        fixed handling of long usernames
        fixed insert_id + query log event processing atomicity in the case
        of slave death
        fix edcharset coversion to not be global to all threads
      sql/sql_class.h:
        fix to make insert_id event and the subsequent query event be still processed
        atomically if slave dies in the middle
      sql/sql_select.cc:
        temp fix to make it compile
      cc89cd45
  20. 05 Oct, 2000 1 commit
    • unknown's avatar
      sql/log.cc · b006442c
      unknown authored
          Added magic number to binlog
      sql/log_event.cc
          distinquish bogus data from truncated logs
      sql/log_event.h
          added magic number
          added LOG_READ_TRUNC error
      sql/mysqlbinlog.cc
          fixed to handle magic number
          added O_BINARY to my_fopen
      sql/mysqld.cc
          added code for replicate-rewrite-db
      sql/slave.cc
          replicate-rewrite-db
          O_BINARY
          handle magic
      sql/sql_class.h
          added i_string_pair class
      sql/sql_repl.cc
          added magic
          better error messages
      support-files/magic
          added magic for binlog
      
      Added test case for replication of queries with error
      
      
      sql/log.cc:
        Added magic number to binlog
      sql/log_event.cc:
        distinquish bogus data from truncated logs
      sql/log_event.h:
        added magic number
        added LOG_READ_TRUNC error
      sql/mysqlbinlog.cc:
        fixed to handle magic number
        added O_BINARY to my_fopen
      sql/mysqld.cc:
        added code for replicate-rewrite-db
      sql/slave.cc:
        replicate-rewrite-db
        O_BINARY
        handle magic
      sql/sql_class.h:
        added i_string_pair class
      sql/sql_repl.cc:...
      b006442c
  21. 04 Oct, 2000 1 commit
    • unknown's avatar
      fixed mutex bug ( or lack of it) when reading log entries on COM_BINLOG_DUMP · 445a320d
      unknown authored
      added error_code to query event, and checking to see if we get the
      expected error on the slave
      removed obsolete code from slave.cc
      
      
      sql/log_event.cc:
        added mutex as an argument to FILE read_log_event functions
      sql/log_event.h:
        added error_code for the query event
      sql/mysqlbinlog.cc:
        fix for new form of read_log_event
      sql/slave.cc:
        removed obsolte code with fetch nx table
        added check to see if the query runs with the same error on the slave
        as it did on the master
      sql/sql_repl.cc:
        fixed mutex problem around read_log_event
      445a320d
  22. 02 Oct, 2000 1 commit
    • unknown's avatar
      skip updates with the same server id as self · 1e7611a1
      unknown authored
       kill zombie COM_BINLOG_DUMP with the same server id on connect
      
      
      sql/mysql_priv.h:
        made kill_one_thread global scope
      sql/slave.cc:
        skip updates with the same server id as self
        fixed compiler warning
      sql/sql_parse.cc:
        COM_BINLOG_DUMP is followed by a simulation of COM_QUIT for proper thread clean up
      sql/sql_repl.cc:
        kill zombie COM_BINLOG_DUMP with the same server id on connect,
        more verbose binlog_send process status
      1e7611a1
  23. 29 Sep, 2000 1 commit
    • unknown's avatar
      bug fixes in server-id, moved replication functionality to · 156e31aa
      unknown authored
      sql_repl.* will push this one, since the replication code now works
      
      
      repl-tests/test-dump/run.test:
        added slave/master reset
      sql/Makefile.am:
        added sql_repl.*
      sql/log_event.cc:
        moved #defines to log_event.h
      sql/log_event.h:
        moved #defines from log_event.cc
      sql/mysql_priv.h:
        added LOCK_server_id
      sql/mysqlbinlog.cc:
        added server id
      sql/mysqld.cc:
        added mutex_init for LOCK_server_id
      sql/slave.cc:
        added server_id to COM_BINLOG_DUMP
      sql/sql_base.cc:
        moved replication code to sql_repl.*
      sql/sql_parse.cc:
        moved replication code to sql_repl.*
      156e31aa
  24. 28 Sep, 2000 2 commits
    • unknown's avatar
      This one will not be pushed, I am committing to be able to pull in Monty's changes · c4f8b959
      unknown authored
      added server id, mostly working
      added --skip-slave-start, working
      added --replicate-rewrite-db - just in the cmd line parses, currently noop
      
      
      sql/log_event.cc:
        added server id
      sql/log_event.h:
        added server id
      sql/mysql_priv.h:
        server id
      sql/mysqlbinlog.cc:
        server id
      sql/mysqld.cc:
        server id, --skip-slave-start, --replicate-rewrite-db
      sql/share/romanian/errmsg.sys:
        somehow got touched and bk thinks it is modified
      sql/slave.cc:
        server id, fixed typo in error message, cleaned up
      sql/sql_class.cc:
        server id in THD
      sql/sql_class.h:
        server id in THD
      c4f8b959
    • unknown's avatar
      Fixed indention, removed compiler varnings and fixed a bug · aba45653
      unknown authored
      in FULLTEXT indexes.
      
      
      Docs/manual.texi:
        Removed some @ifset nushere tags which crashed the manual
        when using emacs
      client/mysql-test.c:
        ***MISSING WEAVE***
      heap/hp_test2.c:
        Removed compiler warnings
      isam/pack_isam.c:
        Removed compiler warnings
      isam/update.c:
        Removed compiler warnings
      myisam/ft_parser.c:
        cleanup
      myisam/ft_update.c:
        Fixed crash when inserting a blob which was NULL
      myisam/mi_check.c:
        -e continues checking of other keys on error
      myisam/mi_rkey.c:
        cleanup
      myisam/myisamchk.c:
        cleanup
      myisam/myisamlog.c:
        Added use of rnd to make things more predictable
      myisammrg/myrg_rkey.c:
        Removed compiler warnings
      mysys/mf_pack.c:
        cleanup
      mysys/my_fstream.c:
        cleanup
      sql/ha_berkeley.cc:
        cleanup
      sql/handler.cc:
        cleanup
      sql/item_func.cc:
        cleanup
      sql/item_func.h:
        cleanup
      sql/net_serv.cc:
        cleanup
      sql/slave.cc:
        cleanup
      sql/sql_class.cc:
        cleanup
      sql/sql_show.cc:
        cleanup
      aba45653
  25. 19 Sep, 2000 1 commit
    • unknown's avatar
      sql/slave.cc · b644fbe0
      unknown authored
          fixed typo in the error message
      sql/sql_base.cc
          fixed bugs in reopen_name_locked_table() after talking to Monty
      
      added a test case for restore + select
      
      
      sql/slave.cc:
        fixed typo in the error message
      sql/sql_base.cc:
        fixed bugs in reopen_name_locked_table() after talking to Monty
      b644fbe0
  26. 16 Sep, 2000 1 commit
    • unknown's avatar
      Fix that REPAIR/ALTER TABLE use myisam_tempdir · 87fdca2e
      unknown authored
      include/myisam.h:
        Don't assume too big tempoary disks
      myisam/mi_check.c:
        Don't assume too big tempoary disks
      myisam/mi_static.c:
        Don't assume too big tempoary disks
      myisam/myisamdef.h:
        Fix type
      sql/ha_myisam.cc:
        Set myisamchk to use MySQL temporary disk space
      sql/slave.cc:
        Fix parameters
      sql/sql_lex.h:
        Added backup_dir
      87fdca2e
  27. 14 Sep, 2000 1 commit
    • unknown's avatar
      BACKUP TABLE TO 'directory' · 80e11b3e
      unknown authored
      RESTORE TABLE FROM 'directory'
      log on slave when it connects to the master
      
      
      include/mysql_com.h:
        Added COM_CONNECT_OUT so we can log on the slave when 
        connects to the master
      sql/ha_myisam.cc:
        added restore() and backup()
      sql/ha_myisam.h:
        Added restore() and backup()
      sql/handler.cc:
        restore()/backup()
      sql/handler.h:
        restore()/backup()
      sql/lex.h:
        BACKUP/RESTORE
      sql/mysql_priv.h:
        gave global ( non-static) scope to generate_table()
        added mysql_backup_table()/mysql_restore_table()
      sql/slave.cc:
        Log when slave connects to the master on the slave
      sql/sql_delete.cc:
        changed the scope of generate_table() from static to global
      sql/sql_lex.h:
        changes for BACKUP TABLE/RESTORE TABLE
      sql/sql_parse.cc:
        Changes for BACKUP TABLE/RESTORE TABLE
      sql/sql_table.cc:
        Changes for BACKUP TABLE/RESTORE TABLE
      sql/sql_yacc.yy:
        BACKUP TABLE/ RESTORE TABLE
      80e11b3e
  28. 12 Sep, 2000 2 commits
    • unknown's avatar
      fixed random exec times for connect stage of the slave thread · 30e542fb
      unknown authored
      sql/slave.cc:
        fixed random exec times for connect stage of the slave thread
      30e542fb
    • unknown's avatar
      Update to new root alloc, OPTIMIZE TABLE and some other changes · 77b11dbc
      unknown authored
      Docs/manual.texi:
        Added chapter for binary log, updated the changelog, linux section, OPTIMIZE TABLE...
      client/mysqladmin.c:
        Fixed bug with pid-file handling.
      client/mysqldump.c:
        Version change
      configure.in:
        Version change
      include/Makefile.am:
        Fix for SCO to get sched.h removed.
      include/global.h:
        Increased MY_NFILE;  Added thread_safe_increment
      include/my_sys.h:
        Better root_alloc
      include/mysql.h:
        Better root_alloc
      include/mysys_err.h:
        Fix for PREAD/PWRITE on windows
      libmysql/libmysql.c:
        Better root_alloc
      myisam/mi_locking.c:
        Fix for PREAD/PWRITE on windows
      myisam/mi_static.c:
        Fix for PREAD/PWRITE on windows
      mysys/default.c:
        Better root_alloc
      mysys/errors.c:
        Fix for PREAD/PWRITE on windows
      mysys/my_alloc.c:
        Better root_alloc
      mysys/my_create.c:
        Fix for PREAD/PWRITE on windows
      mysys/my_fopen.c:
        Fix for PREAD/PWRITE on windows
      mysys/my_open.c:
        Fix for PREAD/PWRITE on windows
      mysys/my_pread.c:
        Fix for PREAD/PWRITE on windows
      mysys/tree.c:
        Better root_alloc
      readline/bind.c:
        Removed compiler warning
      readline/isearch.c:
        Removed compiler warning
      scripts/safe_mysqld.sh:
        Allow use of MYSQL_UNIX_PORT and MYSQL_TCP_PORT
      sql-bench/crash-me.sh:
        Version change
      sql-bench/limits/mysql-3.23.cfg:
        Update to latest MySQL version
      sql/filesort.cc:
        Added more statistics
      sql/ha_berkeley.h:
        Fixed bug with ORDER BY
      sql/ha_myisam.cc:
        Added OPTIMIZE TABLE and cleaned up the repair code
      sql/ha_myisam.h:
        Added OPTIMIZE TABLE and cleaned up the repair code
      sql/handler.cc:
        Added OPTIMIZE TABLE and cleaned up the repair code
      sql/handler.h:
        Added OPTIMIZE TABLE and cleaned up the repair code
      sql/item_func.cc:
        Fixed comment
      sql/item_timefunc.cc:
        Fixed possible month bug
      sql/mini_client.cc:
        Use of new root_alloc
      sql/mysql_priv.h:
        Added OPTIMIZE TABLE and cleaned up the repair code
      sql/mysqld.cc:
        Added more statistics
      sql/opt_range.cc:
        Use of new root_alloc
      sql/slave.cc:
        Use of new root_alloc
      sql/sql_acl.cc:
        Use of new root_alloc
      sql/sql_class.cc:
        Use of new root_alloc
      sql/sql_parse.cc:
        Use of new root_alloc
      sql/sql_select.cc:
        Added more statistics
      sql/sql_table.cc:
        Added OPTIMIZE TABLE and cleaned up the repair code
      sql/sql_udf.cc:
        Use of new root_alloc
      sql/sql_yacc.yy:
        Fixed that OPTIMIZE TABLE can take many tables as arguments
      sql/table.cc:
        Use of new root_alloc
      sql/thr_malloc.cc:
        Use of new root_alloc
      support-files/mysql.server.sh:
        Removed usage of AWK
      77b11dbc
  29. 10 Sep, 2000 1 commit
  30. 23 Aug, 2000 1 commit
    • unknown's avatar
      Replication fixes · 4788f471
      unknown authored
      sql/log_event.cc:
        changed uint to uint32 in all places where the code depended on 
        sizeof(uint) to be 4
      sql/log_event.h:
        changed uint to uint32 in all places where the code depended on 
        sizeof(uint) to be 4
      sql/slave.cc:
        Monty's I64 fix broke my fprintf(), to fix it, changed to use llstr() 
        to print mi->pos that has become ulonglong
      4788f471
  31. 21 Aug, 2000 2 commits
    • unknown's avatar
      FLUSH TABLE table_list · 0a97611c
      unknown authored
      Fixes for RENAME TABLE
      Portability fixes
      
      
      Docs/manual.texi:
        FLUSH TABLES table_list
      client/mysql.cc:
        Ia64 port
      client/mysqladmin.c:
        Ia64 port
      client/mysqldump.c:
        Ia64 port
      client/mysqlimport.c:
        Ia64 port
      client/mysqlshow.c:
        Ia64 port
      client/readline.cc:
        Ia64 port
      configure.in:
        Ia64 port
      include/config-win.h:
        Ia64 port
      include/thr_alarm.h:
        Ia64 port
      myisam/myisamdef.h:
        Ia64 port
      myisammrg/myrg_rkey.c:
        Ia64 port
      mysys/thr_alarm.c:
        Easier compile of non threaded client
      mysys/thr_lock.c:
        Easier compile of non threaded client
      mysys/thr_mutex.c:
        Easier compile of non threaded client
      sql-bench/crash-me.sh:
        Added test for RENAME + some ANSI SQL99 group functions
      sql-bench/limits/mysql.cfg:
        New run
      sql-bench/server-cfg.sh:
        Fix
      sql-bench/test-insert.sh:
        Fix
      sql/field.cc:
        Port to Ia64
      sql/ha_berkeley.cc:
        Port to Ia64
      sql/ha_myisam.cc:
        cleanup
      sql/handler.cc:
        Port to Ia64
      sql/hostname.cc:
        Port to Ia64
      sql/item.cc:
        Port to Ia64
      sql/item_create.cc...
      0a97611c
    • unknown's avatar
      RENAME TABLE table_name TO new_table_name ; Faster Alloc · 1b6d911e
      unknown authored
      Small bug fixes
      
      
      myisammrg/myrg_rfirst.c:
        Change mode to -rw-rw-r--
      myisammrg/myrg_rlast.c:
        Change mode to -rw-rw-r--
      myisammrg/myrg_rnext.c:
        Change mode to -rw-rw-r--
      myisammrg/myrg_rprev.c:
        Change mode to -rw-rw-r--
      Docs/manual.texi:
        Update of RENAME
      configure.in:
        Portability fix
      include/global.h:
        Fix for ODBC and Intel Ia64
      include/mysqld_error.h:
        RENAME TABLE
      myisam/myisamchk.c:
        Faster --fast
      myisammrg/myrg_queue.c:
        Bug fix
      myisammrg/myrg_rkey.c:
        Portability fix
      sql-bench/test-insert.sh:
        Fix for duplicate key test
      sql/ChangeLog:
        Changelog
      sql/Makefile.am:
        RENAME TABLE
      sql/item_sum.cc:
        Fix for COUNT(DISTINCT)
      sql/lock.cc:
        RENAME TABLE
      sql/share/czech/errmsg.sys:
        RENAME TABLE
      sql/share/czech/errmsg.txt:
        RENAME TABLE
      sql/share/danish/errmsg.sys:
        RENAME TABLE
      sql/share/danish/errmsg.txt:
        RENAME TABLE
      sql/share/dutch/errmsg.sys:
        RENAME TABLE
      sql/share/dutch/errmsg.txt:
        RENAME TABLE
      sql/share/english/errmsg.sys:
        RENAME TABLE
      sql/share/english/errmsg.txt:
        RENAME TABLE
      sql/share/estonia/errmsg.sys:
        RENAME TABLE
      sql/share/estonia/errmsg.txt:
        RENAME TABLE
      sql/share/french/errmsg.sys:
        RENAME TABLE
      sql/share/french/errmsg.txt:
        RENAME TABLE
      sql/share/german/errmsg.sys:
        RENAME TABLE
      sql/share/german/errmsg.txt:
        RENAME TABLE
      sql/share/greek/errmsg.sys:
        RENAME TABLE
      sql/share/greek/errmsg.txt:
        RENAME TABLE
      sql/share/hungarian/errmsg.sys:
        RENAME TABLE
      sql/share/hungarian/errmsg.txt:
        RENAME TABLE
      sql/share/italian/errmsg.sys:
        RENAME TABLE
      sql/share/italian/errmsg.txt:
        RENAME TABLE
      sql/share/japanese/errmsg.sys:
        RENAME TABLE
      sql/share/japanese/errmsg.txt:
        RENAME TABLE
      sql/share/korean/errmsg.sys:
        RENAME TABLE
      sql/share/korean/errmsg.txt:
        RENAME TABLE
      sql/share/norwegian-ny/errmsg.txt:
        RENAME TABLE
      sql/share/norwegian/errmsg.txt:
        RENAME TABLE
      sql/share/polish/errmsg.sys:
        RENAME TABLE
      sql/share/polish/errmsg.txt:
        RENAME TABLE
      sql/share/portuguese/errmsg.sys:
        RENAME TABLE
      sql/share/portuguese/errmsg.txt:
        RENAME TABLE
      sql/share/romania/errmsg.sys:
        RENAME TABLE
      sql/share/romania/errmsg.txt:
        RENAME TABLE
      sql/share/romanian/errmsg.txt:
        ***MISSING WEAVE***
      sql/share/russian/errmsg.sys:
        RENAME TABLE
      sql/share/russian/errmsg.txt:
        RENAME TABLE
      sql/share/slovak/errmsg.sys:
        RENAME TABLE
      sql/share/slovak/errmsg.txt:
        RENAME TABLE
      sql/share/spanish/errmsg.sys:
        RENAME TABLE
      sql/share/spanish/errmsg.txt:
        RENAME TABLE
      sql/share/swedish/errmsg.OLD:
        RENAME TABLE
      sql/share/swedish/errmsg.sys:
        RENAME TABLE
      sql/share/swedish/errmsg.txt:
        RENAME TABLE
      sql/slave.cc:
        Faster alloc
      sql/sql_base.cc:
        RENAME TABLE
      sql/sql_class.cc:
        Faster alloc
      sql/sql_class.h:
        Faster alloc
      sql/sql_insert.cc:
        Fix bug in INSERT ... SELECT to BDB table
      sql/sql_lex.h:
        RENAME TABLE
      sql/sql_select.cc:
        Faster alloc
      sql/sql_show.cc:
        Faster alloc
      sql/sql_table.cc:
        RENAME TABLE
      sql/sql_yacc.yy:
        RENAME TABLE
      sql/thr_malloc.cc:
        Faster alloc
      sql/unireg.h:
        RENAME TABLE
      strings/ctype-sjis.c:
        Portability fix
      1b6d911e
  32. 15 Aug, 2000 1 commit
    • unknown's avatar
      fix for the fatal bug in LOAD TABLE FROM MASTER · 929e40dd
      unknown authored
      sql/slave.cc:
        fixed a bug in LOAD TABLE FROM MASTER - the table was not being locked during repair
      sql/sql_parse.cc:
        reverse the bookkeeping so that sql_parse.cc now matches Monty's
      929e40dd