1. 11 Jun, 2004 15 commits
  2. 10 Jun, 2004 20 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 965d0929
      unknown authored
      into mysql.com:/home/kostja/mysql/mysql-4.1-root
      
      
      965d0929
    • unknown's avatar
      assert.h needed for my_dbug.h now is included in my_dbug.h, where it for · f203beba
      unknown authored
      some reason wasn't included before.
      A lot of files cleaned up from #include <assert.h>
      
      
      client/mysqlbinlog.cc:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      client/mysqldump.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      heap/hp_hash.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      include/m_string.h:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      include/my_dbug.h:
        include assert.h needed for DBUG_ASSERT
      libmysql/libmysql.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/ftdefs.h:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/mi_delete.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/mi_dynrec.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/mi_key.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/mi_open.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/mi_search.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      myisam/mi_write.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/mf_iocache.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/mf_iocache2.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/mf_keycache.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/my_bitmap.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/my_gethostbyname.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/my_getopt.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/my_pthread.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/my_seek.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/rijndael.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      mysys/thr_alarm.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      sql-common/client.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      sql/mysql_priv.h:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      sql/sql_string.cc:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      strings/ctype-simple.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      strings/ctype-ucs2.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      strings/my_vsnprintf.c:
        assert.h needed for my_dbug.h now is included in
        my_dbug.h, where it for some reason wasn't included before.
      f203beba
    • unknown's avatar
      bug#3964 and related issues: FTB problems with charsets where one byte can match many · 1e24da54
      unknown authored
      correct prefix compare with my_strnncoll
      
      
      include/m_ctype.h:
        6th argument to my_strncoll to handle prefix comparison
      myisam/ft_boolean_search.c:
        bug#3964 and related issues: problems with charsets where one byte can match many
        *correct* prefix compare with my_strnncoll
        *correct* backup of info->lastkey
      mysql-test/r/fulltext.result:
        6th argument to my_strncoll to handle prefix comparison
      mysql-test/t/fulltext.test:
        6th argument to my_strncoll to handle prefix comparison
      mysys/my_handler.c:
        6th argument to my_strncoll to handle prefix comparison
      sql/sql_parse.cc:
        cleanup
      strings/ctype-big5.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-bin.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-czech.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-gbk.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-latin1.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-mb.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-simple.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-sjis.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-tis620.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-uca.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-ucs2.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-utf8.c:
        6th argument to my_strncoll to handle prefix comparison
      strings/ctype-win1250ch.c:
        6th argument to my_strncoll to handle prefix comparison
      1e24da54
    • unknown's avatar
      EXISTS(SELECT * ...) · d9b81f3a
      unknown authored
      close table before opening in optimize
      
      
      mysql-test/r/subselect.result:
        test of EXISTS(SELECT * ...)
      mysql-test/t/subselect.test:
        test of EXISTS(SELECT * ...)
      sql/sql_base.cc:
        EXISTS(SELECT * ...)
      sql/sql_table.cc:
        close table before opening one
      d9b81f3a
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · f9ec1ff2
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-count-4.1
      
      
      f9ec1ff2
    • unknown's avatar
      BUG#4088 - Multiple mixed index/normal reads · 6ca4b6cd
      unknown authored
      
      ndb/include/kernel/signaldata/TcKeyConf.hpp:
        BUG#4088 - Multiple mixed index/normal reads
        Make setNoOps "set's" and not only "or's"
      6ca4b6cd
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · bfe7ebee
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-874
      
      
      sql/ha_innodb.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      bfe7ebee
    • unknown's avatar
      WL#1689 "Map OPTIMIZE TABLE to ALTER TABLE for InnoDB" · 78492226
      unknown authored
      exactly it's mapped to "ALTER TABLE t; ANALYZE TABLE t;"
      
      
      sql/ha_innodb.cc:
        ::optimize() now returns "try ALTER and then analyze" instead of only analyze.
      sql/handler.h:
        new code to say "try alter and analyze".
      sql/mysql_priv.h:
        as we may now use mysql_alter_table() internally to ::optimize we must prevent it from talking to the client.
        New function mysql_recreate_table() which is the same as ALTER TABLE t;
      sql/sql_parse.cc:
        the big block removed here is moved into mysql_recreate_table().
      sql/sql_table.cc:
        In mysql_admin_table(): if the handler returns HA_ADMIN_TRY_ALTER,
        we close the table, recreate it, then open it and analyze it.
        This is currently used only for OPTIMIZE TABLE of an InnoDB table.
      78492226
    • unknown's avatar
      Optimization to use less memory. · d8f0df52
      unknown authored
      d8f0df52
    • unknown's avatar
      WL#1595 "Optionally fsync() the binlog after every statement": · 7ece3c74
      unknown authored
      New option --sync-binlog=x (and global settable variable) which will fsync the binlog
      after every x-th disk write to it. That is, if in autocommit mode, after every x-th statement
      written to the binlog; if using transactions, after every x-th transaction written to the binlog.
      x==0 means no fsync. x==1 is the slowest.
      There is no test added for this, I have just checked that it works as --sync-binlog=1 dramatically
      slows down mysqld.
      Made sync-frm a global settable variable.
      
      
      sql/log.cc:
        every sync_binlog_period-th disk binlog write, we fsync the binlog
      sql/mysql_priv.h:
        new option sync_binlog
      sql/mysqld.cc:
        new option sync_binlog
      sql/set_var.cc:
        Making sync-frm a settable global option.
        New settable global option sync-binlog.
      sql/set_var.h:
        new global settable variable sync_binlog needs a specific ::update because it needs to take LOCK_log
      7ece3c74
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · 7f440220
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-1595
      
      
      7f440220
    • unknown's avatar
      don't need to tag the slave SQL thread as "bootstrap". It causes duplicate · 0e6b9457
      unknown authored
      error messages when a query goes wrong.
      Note that from now on, if you run with --slave-skip-error=xx, then nothing will
      be printed to the error log when the slave is having this error xx and
      skipping it (but you don't care as you want to skip it).
      
      
      sql/repl_failsafe.cc:
        a comment about the use of thd->bootstrap in failsafe (unused code)
      0e6b9457
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · be68220f
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb
      
      
      be68220f
    • unknown's avatar
      removed myVector from ndb restore · dd6023e7
      unknown authored
      
      BitKeeper/deleted/.del-myVector.hpp~4ecd4d6d4c8fa2f6:
        Delete: ndb/src/kernel/blocks/backup/restore/myVector.hpp
      ndb/include/util/Parser.hpp:
        bug-fix missing delete
      ndb/src/kernel/blocks/backup/restore/Restore.cpp:
        removed myVector
      ndb/src/kernel/blocks/backup/restore/Restore.hpp:
        removed myVector
      ndb/src/kernel/blocks/backup/restore/consumer_restore.cpp:
        removed myVector
      ndb/src/kernel/blocks/backup/restore/main.cpp:
        removed myVector
      dd6023e7
    • unknown's avatar
      · 378761c1
      unknown authored
      Added function 
      
      /***********************************************************************
      This function stores binlog offset and flushes logs */
      
      
      void innobase_store_binlog_offset_and_flush_log(char *binlog_name,longlong offset) 
      requested by Guilhem to ha_innodb.cc and ha_innodb.h. 
      
      Change made by Jan.Lindstrom@innodb.com
      
      
      378761c1
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 1a520c7a
      unknown authored
      into mysql.com:/home/pem/work/mysql-4.1
      
      
      1a520c7a
    • unknown's avatar
      ec923b80
    • unknown's avatar
      cleunup() of count() and max()/min() added (BUG#2687) · 8e6b48f8
      unknown authored
      
      mysql-test/r/func_group.result:
        test of optimized aggregate function re-execution
      mysql-test/t/func_group.test:
        test of optimized aggregate function re-execution
      sql/item_sum.cc:
        cleunup() added
      sql/item_sum.h:
        cleunup() added
      8e6b48f8
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · d1cb8d6d
      unknown authored
      into mc05.(none):/space2/tomas/mysql-4.1-ndb-test
      
      
      d1cb8d6d
    • unknown's avatar
      more ndb restore cleanup · f1007e60
      unknown authored
      f1007e60
  3. 09 Jun, 2004 5 commits
    • unknown's avatar
      Fix for Bug#3904 "COUNT DISTINCT performance anomaly in 4.1" · f468b91f
      unknown authored
      The bug was caused by error in hash calculation function: it
      always returned hash value for last field in a composite key, so 
      for keys like (a text, b char(1)) we were always
      getting bad hash values.
       
      
      
      myisam/mi_unique.c:
        Fix for bug #3904:
        We should take into account existing hash value when calculating hash for
        next key in a composite unique index.
      f468b91f
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · a9c50d05
      unknown authored
      into poseidon.bredbandsbolaget.se:/home/tomas/mysql-4.1-ndb
      
      
      a9c50d05
    • unknown's avatar
      re-enginered ndb restore to remove new/deletes and data copy · d089a424
      unknown authored
      
      BitKeeper/deleted/.del-Makefile_old~5e1138bd59f6b3aa:
        Delete: ndb/src/kernel/blocks/backup/restore/Makefile_old
      d089a424
    • unknown's avatar
      fix for bug #3974 ("SHOW FULL PROCESSLIST" crashes the embedded server) · c56613fb
      unknown authored
      server crashed checking thd->priv_user[0] and thd->priv_user is NULL
      if NO_EMBEDDED_ACCESS_CHECKS is on.
      Now i set it to be the same as thd->user
      
      
      libmysqld/lib_sql.cc:
        now priv_user won't be NULL
      c56613fb
    • unknown's avatar
      Fix for the bug #4014 (prepared SELECT in embedded server) · 8370e6e1
      unknown authored
      Problem is that store_string_aux calls 'wrong' net_store_data
      
      
      sql/protocol.h:
        I tried not to do net_store_data virtual - it's going to work a bit slower -
        using the fact that Protocol_simple and Protocol_prep have different
        implementation for 'store' methods.
        But now the store_string_aux method works for both.
        Well we still can try to make separate versions for Protocol_prep and
        Protocol_simple, but i prefer to make net_store_data virtual for
        embedded server so we won't have similar problems in the future
      8370e6e1