1. 18 Jun, 2004 1 commit
    • unknown's avatar
      API change: mysql_shutdown() now requires a 2nd argument, the shutdown level. · ceb1f65b
      unknown authored
      mysqld >=4.1.3 will however understand shutdown requests sent by clients <4.1.3.
      And mysqld <4.1.3 will understand shutdown requests sent by clients >=4.1.3
      (it will ignore the level). Those shutdown level are just PLACEHOLDERS now.
      So this change is just to make the 4.1 API suitable before it is frozen. Later
      we will actually implement the shutdown levels.
      
      
      VC++Files/winmysqladmin/main.cpp:
        2nd argument to mysql_shutdown()
      VC++Files/winmysqladmin/mysql.h:
        2nd argument to mysql_shutdown()
      VC++Files/winmysqladmin/mysql_com.h:
        Several types of shutdown now.
      include/mysql_com.h:
        SHUTDOWN_DEFAULT is now 0 instead of 255, this saves one test in sql_parse.cc
      libmysql/libmysql.c:
        correcting mistake (how come that my tests still all worked with this? - should recheck, for curiosity).
      sql/sql_parse.cc:
        with SHUTDOWN_DEFAULT==0, no need for testing packet_length.
      ceb1f65b
  2. 15 Jun, 2004 2 commits
    • unknown's avatar
      Adding SHUTDOWN_WAIT_STATEMENTS to the possible arguments of mysql_shutdown(). · e1d65bf9
      unknown authored
      Comments on names still welcome.
      
      
      include/mysql_com.h:
        one more possible shutdown level
      e1d65bf9
    • unknown's avatar
      API change: mysql_shutdown() now needs a 2nd parameter, the shutdown level. · 766eef4c
      unknown authored
      Server will however still accept shutdown without specified level; so that old
      mysqladmin can still shut server down.
      I would like your comments on the names of shutdown level which I chose. You
      are welcome to propose better names. Please however check WL#709 before.
      Reason for the names I propose is to be accurate, thus leaving possibility
      for other levels which we may imagine in the future; that's why I have rejected
      names like "fast", "smart", "graceful" so far. My position is that WAIT_ALL_BUFFERS
      or WAIT_CRITICAL_BUFFERS say what the shutdown does, whereas for "smart", "fast" you
      need to remember what it does.
      This should be pushed in 4.1.3 but only after your comments.
      
      
      client/mysqladmin.c:
        2nd parameter for mysql_shutdown()
      include/mysql.h:
        2nd paramater for mysql_shutdown()
      include/mysql_com.h:
        4 types of shutdown
      libmysql/libmysql.c:
        passing the requested shutdown level
      sql/sql_parse.cc:
        check for the shutdown level in dispatch_command(). Though its value is ignored for now.
      tools/mysqlmanager.c:
        2nd parameter to mysql_shutdown
      766eef4c
  3. 14 Jun, 2004 2 commits
  4. 12 Jun, 2004 4 commits
    • unknown's avatar
      Merge paul@bk-internal.mysql.com:/home/bk/mysql-4.1 · cb404ee7
      unknown authored
      into teton.kitebird.com:/home/paul/bk/mysql-4.1
      
      cb404ee7
    • unknown's avatar
      sql_state.h: · 8544d2f7
      unknown authored
        Fix couple of typos.
      
      
      include/sql_state.h:
        Fix couple of typos.
      8544d2f7
    • unknown's avatar
      Unicode collation algorithm: contraction support. · 11d7e79f
      unknown authored
      E.g. 'Ch' is treated as a separate letter in Czech,
      not as a combination of C+h.
      
      11d7e79f
    • unknown's avatar
      mysql-copyright: · bb66cb34
      unknown authored
        Fixed various issues to deal with untarring of gpl tar file, clearing configure.in, changed calls to use system vs. backticks
      
      
      Build-tools/mysql-copyright:
        Fixed various issues to deal with untarring of gpl tar file, clearing configure.in, changed calls to use system vs. backticks
      bb66cb34
  5. 11 Jun, 2004 13 commits
  6. 10 Jun, 2004 18 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 8b7f6aaa
      unknown authored
      into mysql.com:/home/kostja/mysql/mysql-4.1-root
      
      8b7f6aaa
    • unknown's avatar
      assert.h needed for my_dbug.h now is included in my_dbug.h, where it for · 22bc1bb8
      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.
      22bc1bb8
    • unknown's avatar
      bug#3964 and related issues: FTB problems with charsets where one byte can match many · b670b0b7
      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
      b670b0b7
    • unknown's avatar
      EXISTS(SELECT * ...) · 7da027f1
      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
      7da027f1
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 6e10db73
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-count-4.1
      
      6e10db73
    • unknown's avatar
      BUG#4088 - Multiple mixed index/normal reads · 91e23366
      unknown authored
      
      ndb/include/kernel/signaldata/TcKeyConf.hpp:
        BUG#4088 - Multiple mixed index/normal reads
        Make setNoOps "set's" and not only "or's"
      91e23366
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · 07a50d88
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-874
      
      
      sql/ha_innodb.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      07a50d88
    • unknown's avatar
      WL#1689 "Map OPTIMIZE TABLE to ALTER TABLE for InnoDB" · 29ab3397
      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.
      29ab3397
    • unknown's avatar
      Optimization to use less memory. · dbe59c73
      unknown authored
      dbe59c73
    • unknown's avatar
      WL#1595 "Optionally fsync() the binlog after every statement": · 35eae8cd
      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
      35eae8cd
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · 2dd4d17e
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-1595
      
      2dd4d17e
    • unknown's avatar
      don't need to tag the slave SQL thread as "bootstrap". It causes duplicate · 6f363667
      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)
      6f363667
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · 23f2e075
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb
      
      23f2e075
    • unknown's avatar
      removed myVector from ndb restore · a8c12a06
      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
      a8c12a06
    • unknown's avatar
      · 1a0f012a
      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
      
      1a0f012a
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 37acc504
      unknown authored
      into mysql.com:/home/pem/work/mysql-4.1
      
      37acc504
    • unknown's avatar
      482596bd
    • unknown's avatar
      cleunup() of count() and max()/min() added (BUG#2687) · cc694eba
      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
      cc694eba