1. 14 Apr, 2005 1 commit
    • unknown's avatar
      Check that the default storage engine is really available, and · 2ac2c566
      unknown authored
      refuse to start up if it is not. (Bug #9815)
      
      
      sql/handler.cc:
        Add ha_storage_engine_is_enabled function.
      sql/handler.h:
        Declare ha_storage_engine_is_enabled()
      sql/mysqld.cc:
        Abort startup if the specified default storage engine is
        not available.
      2ac2c566
  2. 13 Apr, 2005 2 commits
  3. 08 Apr, 2005 2 commits
  4. 02 Apr, 2005 1 commit
    • unknown's avatar
      Fix handling of max_allowed_packet and net_buffer_length in · d308f50f
      unknown authored
      embedded server when a size suffix (K, M, G) is added. (Bug #9472)
      
      
      sql/mysqld.cc:
        Instead of (re)parsing max_allowed_packet and net_buffer_length
        for the embedded server, just set the global variables to what
        is set in global_system_variables within get_options().
      d308f50f
  5. 01 Apr, 2005 1 commit
    • unknown's avatar
      Last minor things to finish MySQL 4.1.10a: · b51223bb
      unknown authored
      - some wordings,
      - RPM packaging improvements.
      
      
      configure.in:
        Set the version string.
      scripts/mysql_create_system_tables.sh:
        Security change: Reduce the risk caused by predefined anonymous logins.
      sql/mysqld.cc:
        Correct a message text; align variable order with other versions.
      sql/sql_udf.cc:
        Fix an erroneous takeover of 4.0 wording.
      support-files/mysql.spec.sh:
        Fix date formatting, add missing change descriptions.
      b51223bb
  6. 31 Mar, 2005 2 commits
    • unknown's avatar
      typos fixed · 2910a7c8
      unknown authored
      Originally contained in 2005/03/03 23:10:23+01:00 serg@serg.mylan;
      contained in MySQL 4.1.10a;
      re-committed for archival purposes.
      
      
      sql/mysqld.cc:
        typos fixed
      2910a7c8
    • unknown's avatar
      Fixes for bugs reported by Stefano Di Paola (stefano.dipaola@wisec.it) · a79b47fc
      unknown authored
      Originally contained in 2005/03/03 19:51:29+01:00 serg@serg.mylan;
      contained in MySQL 4.1.10a;
      re-committed for archival purposes.
      
      
      include/my_global.h:
        O_NOFOLLOW
      isam/create.c:
        create table files with O_EXCL|O_NOFOLLOW
      merge/mrg_create.c:
        create table files with O_EXCL|O_NOFOLLOW
      myisam/mi_create.c:
        create files of temporary tables with O_EXCL|O_NOFOLLOW
      myisammrg/myrg_create.c:
        create table files with O_EXCL|O_NOFOLLOW
      mysys/mf_tempfile.c:
        create temporary files with O_EXCL|O_NOFOLLOW
      sql/ha_myisam.cc:
        let mi_create know if the table is TEMPORARY
      sql/mysql_priv.h:
        --allow_suspicious_udfs
      sql/mysqld.cc:
        --allow_suspicious_udfs
      sql/share/english/errmsg.txt:
        typo
      sql/sql_udf.cc:
        --allow_suspicious_udfs
        don't allow xxx() udf without any of xxx_init/deinit/add/reset
        check paths when loading from mysql.func
      sql/table.cc:
        create frm of temporary table with O_EXCL|O_NOFOLLOW
      a79b47fc
  7. 29 Mar, 2005 1 commit
  8. 25 Mar, 2005 1 commit
    • unknown's avatar
      A fix for Bug#8226 "Cannot connect via shared memory": · 43c3be4a
      unknown authored
      provide created shared memory objects with proper
      access rights to make them usable when client and server
      are running under different accounts. 
      Post review fixes.
      
      
      VC++Files/mysys/mysys.dsp:
        Add my_windac.c to mysys.lib
      include/my_sys.h:
        Declarations for SECURITY_ATTRIBUTES create/destroy functions.
      mysys/Makefile.am:
        Add my_windac.c to the list of compiled files.
      sql-common/client.c:
        Lower requested access rights for events as the server won't 
        provide clients with ALL access in order to prevent denial
        of service attack.
      sql/mysqld.cc:
        Set proper security attributes for the kernel objects to make them
        usable when mysqld is running as a Windows service.
      43c3be4a
  9. 23 Mar, 2005 2 commits
    • unknown's avatar
      "After Monty's review" changes to the fix for BUG#8325 "Deadlock in... · 832800cc
      unknown authored
      "After Monty's review" changes to the fix for BUG#8325 "Deadlock in replication thread stops replication":
      s/sleep/safe_sleep (thread safe); sleep 0/1/2/3/4/5/5/5 (get slave less late);
      no message on error log (deadlock is too common sometimes), a global counter
      instead (SHOW STATUS LIKE 'slave_retried_transactions').
      Plus a fix for libmysql/Makefile.shared
      
      
      libmysql/Makefile.shared:
        When we "make clean" in libmysql/ we remove the symlinks there, so we
        need to mark that they have to be recreated later: this is done by removing
        ../linked_libmysql_sources. If we don't do this, 'make' will fail after 'cd libmysql;make clean'.
        This Makefile.shared is used by libmysql_r too.
        No reason to remove linked_client_sources as we don't remove the links in client/.
      mysql-test/r/rpl_deadlock.result:
        result fix
      mysql-test/t/rpl_deadlock.test:
        small test addition
      sql/mysqld.cc:
        if active_mi could not be alloced, die. New SHOW STATUS LIKE "slave_retried_transactions".
      sql/slave.cc:
        If slave retries automatically a transaction, no message on error log
        (too common situation); sleep 0 secs at first retry, then 1, 2, 3, 4,
        5, 5, 5... Sleeping 0 is to get the least possible late, as deadlocks
        are usually resolved at first try. New global counter rli->retried_trans
        (for SHOW STATUS: total number of times the slave had to retry
        any transaction). safe_sleep() is thread-safe, sleep() was not.
        I change the rli->trans_retries counter to go from 0 to max instead
        of the other way (better for new sleep()).
      sql/slave.h:
        new global counter rli->retried_trans
      sql/sql_show.cc:
        SHOW STATUS LIKE "slave_retried_transactions"; needs replication mutexes.
        Can't be a simple SHOW_LONG, because active_mi is unset (not alloced yet)
        when the static global status_vars is created (active_mi is set
        in init_slave()).
      sql/structs.h:
        new SHOW_SLAVE_RETRIED_TRANS
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      832800cc
    • unknown's avatar
      Additional storage engine called "blackhole". Customer request, and for that... · 11a2094b
      unknown authored
      Additional storage engine called "blackhole". Customer request, and for that matter a Zawodny request.  With this you can alter table to a type of table that would never store data. Its a /dev/null for a database.  
      
      
      acinclude.m4:
        New macro rule for ha_blackhole.
      configure.in:
        Rule enabling blackhole engine
      sql/Makefile.am:
        Additions to Makefile for blackhole engine
      sql/handler.cc:
        Ifdef enable code for blackhole (and message for "what does this thing do").
      sql/handler.h:
        Flag for storage engine type.
      sql/mysql_priv.h:
        Added blackhole type.
      sql/mysqld.cc:
        Updates for building backhole.
      sql/set_var.cc:
        Show variable for blackhole engine
      11a2094b
  10. 21 Mar, 2005 1 commit
    • unknown's avatar
      BUG#9072 'Max_error_count' system variable cannot be set to zero · 57ca6dd8
      unknown authored
       - Chaned min value in mysqld.cc
       - Added testcase to warnings.test
      
      
      mysql-test/r/warnings.result:
        Added testcase for testing max and min value of max_error_count
      mysql-test/t/warnings.test:
        Added testcase for testing max and min value of max_error_count
      sql/mysqld.cc:
        Change min value of max_error_count from 1 to 0
      57ca6dd8
  11. 09 Mar, 2005 1 commit
    • unknown's avatar
      sql/mysqld.cc · e4766ec1
      unknown authored
          preserve backward compatibility
      
      
      sql/mysqld.cc:
        preserve backward compatibility
      e4766ec1
  12. 08 Mar, 2005 1 commit
    • unknown's avatar
      mysqld.cc: · d2c77957
      unknown authored
        main(): add missing parameter to printf(ER(ER_READY),...) call
      
      
      sql/mysqld.cc:
        main(): add missing parameter to printf(ER(ER_READY),...) call
      d2c77957
  13. 07 Mar, 2005 1 commit
  14. 03 Mar, 2005 2 commits
    • unknown's avatar
      typos fixed · 1be34a72
      unknown authored
      1be34a72
    • unknown's avatar
      Fixes for bugs reported by Stefano Di Paola (stefano.dipaola@wisec.it) · 70e24138
      unknown authored
      include/my_global.h:
        O_NOFOLLOW
      isam/create.c:
        create table files with O_EXCL|O_NOFOLLOW
      merge/mrg_create.c:
        create table files with O_EXCL|O_NOFOLLOW
      myisam/mi_create.c:
        create files of temporary tables with O_EXCL|O_NOFOLLOW
      myisammrg/myrg_create.c:
        create table files with O_EXCL|O_NOFOLLOW
      mysys/mf_tempfile.c:
        create temporary files with O_EXCL|O_NOFOLLOW
      sql/ha_myisam.cc:
        let mi_create know if the table is TEMPORARY
      sql/mysql_priv.h:
        --allow_suspicious_udfs
      sql/mysqld.cc:
        --allow_suspicious_udfs
      sql/share/english/errmsg.txt:
        typo
      sql/sql_udf.cc:
        --allow_suspicious_udfs
        don't allow xxx() udf without any of xxx_init/deinit/add/reset
        check paths when loading from mysql.func
      sql/table.cc:
        create frm of temporary table with O_EXCL|O_NOFOLLOW
      70e24138
  15. 02 Mar, 2005 1 commit
    • unknown's avatar
      Fix for BUG#8325 "Deadlock in replication thread stops replication": · 932f63ac
      unknown authored
      in slave SQL thread: if a transaction fails because of InnoDB deadlock or innodb_lock_wait_timeout exceeded,
      optionally retry the transaction a certain number of times (new variable --slave_transaction_retries).
      
      
      sql/mysql_priv.h:
        new var slave_transaction_retries
      sql/mysqld.cc:
        new variable slave_transaction_retries. Plus fixing a typo.
      sql/set_var.cc:
        new global variable slave_transaction_retries (will be one per subslave, when we have multimaster).
      sql/slave.cc:
        Slave SQL thread: if a transaction fails because of InnoDB deadlock or innodb_lock_wait_timeout exceeded,
        optionally retry the transaction a certain number of times (--slave_transaction_retries).
      sql/slave.h:
        new RELAY_LOG_INFO::trans_retries.
      932f63ac
  16. 01 Mar, 2005 1 commit
  17. 28 Feb, 2005 1 commit
    • unknown's avatar
      Fixed wrong memory references found by purify · d2ce2d2e
      unknown authored
      (No really critical errors found, but a few possible wrong results)
      
      
      innobase/dict/dict0dict.c:
        Replace memcmp with comparison of characters to avoid warnings from purify when 'sptr' points to a very short string
      mysql-test/r/select_found.result:
        Add missing drop table
      mysql-test/r/type_set.result:
        More tests
      mysql-test/t/select_found.test:
        Add missing drop table
      mysql-test/t/type_set.test:
        More tests
      mysys/my_init.c:
        Avoid warning from purify (purify doesn't handle getrusage() properly)
      sql/field.h:
        enum & set are sorted as numbers. This fixes an access to uninitialized memory when enum/set are multi-byte characters
      sql/filesort.cc:
        enum & set are sorted as numbers. This fixes an access to uninitialized memory when enum/set are multi-byte characters
      sql/item_cmpfunc.cc:
        Fixed warning from purify. (Not critical as the arguments are passed to a function but not used)
        Allocate Arg_comparator() with 'new' instead of sql_alloc() to ensure proper initialization
      sql/mysqld.cc:
        Wait for signal handler to stop when running --bootstrap
        (Fixes warning from purify)
      sql/sql_insert.cc:
        Initialize slot used by innodb.cc (not critical)
      sql/sql_lex.h:
        Better comments
      sql/sql_repl.cc:
        memcmp -> bcmp() to avoid warning from purify
      sql/sql_select.cc:
        Fix for out-of-bound memory reference when doing DISTINCT on const expressions
      strings/ctype-simple.c:
        Fixes to not access uninitialized memory
        (Not critical)
      d2ce2d2e
  18. 22 Feb, 2005 1 commit
  19. 21 Feb, 2005 1 commit
  20. 18 Feb, 2005 1 commit
  21. 16 Feb, 2005 1 commit
  22. 08 Feb, 2005 1 commit
  23. 02 Feb, 2005 1 commit
    • unknown's avatar
      configure.in · f5da3a6b
      unknown authored
          don't define UNIV_DEBUG in CFLAGS/CXXFLAGS anymore
      sql/mysqld.cc
          hide from the user options that do nothing
      sql/sql_update.cc
          better fix for uninitialized used_index
      
      
      configure.in:
        don't define UNIV_DEBUG in CFLAGS/CXXFLAGS anymore
      sql/mysqld.cc:
        hide from the user options that do nothing
      sql/sql_update.cc:
        better fix for uninitialized used_index
      f5da3a6b
  24. 25 Jan, 2005 3 commits
    • unknown's avatar
      sql_class.h, set_var.cc, mysqld.cc: · 3b0e962f
      unknown authored
        Add settable variables for semi-sync replication
      
      
      sql/mysqld.cc:
        Add settable variables for semi-sync replication
      sql/set_var.cc:
        Add settable variables for semi-sync replication
      sql/sql_class.h:
        Add settable variables for semi-sync replication
      3b0e962f
    • unknown's avatar
      Cleanups during review · b91c6082
      unknown authored
      BitKeeper/etc/ignore:
        added libmysqld/examples/mysqltest_embedded
      client/mysqlbinlog.cc:
        Call mysql_close() before die()
      innobase/include/eval0eval.ic:
        Remove assert that fails on 64 bit machines
        (Tested with BUILD/compile-pentium64-valgrind-max on 64 bit Intel CPU)
      sql/mysqld.cc:
        Force lower_case_table_names to 0 if set to 2 on case insensitive file name
      sql/sql_select.cc:
        Remove #if 0
      b91c6082
    • unknown's avatar
      InnoDB: Backport innodb_autoextend_increment from 4.1 · 363f5468
      unknown authored
      innobase/include/srv0srv.h:
        Add configuration variable srv_auto_extend_increment
      innobase/srv/srv0srv.c:
        Add configuration variable srv_auto_extend_increment
      sql/ha_innodb.h:
        Add configuration variable srv_auto_extend_increment
      sql/mysqld.cc:
        Add startup option innodb_autoextend_increment
      sql/set_var.cc:
        Add settable global variable innodb_autoextend_increment
      363f5468
  25. 24 Jan, 2005 1 commit
  26. 21 Jan, 2005 1 commit
  27. 19 Jan, 2005 2 commits
    • unknown's avatar
      Warn when mysqld starts up with lower_case_table_names=2 but datadir is · c5ff4b63
      unknown authored
      on a case-sensitive filesystem. (Bug #7887)
      
      
      sql/mysqld.cc:
        Add warning when running with lower_case_table_names=2 and datadir is
        on a case-sensitive filesystem.
      c5ff4b63
    • unknown's avatar
      Final patch for BUG#4285. · e432b337
      unknown authored
      This patch collects all previous patches into one.
      
      The main problem was due to that there is are two variables -
      dflt_key_cache and sql_key_cache with have more or less duplicate
      function. The reson for the bug was that the default value in the key
      cache hash was set to dflt_key_cache, then sql_key_cache was set to a
      new key cache object, and then dflt_key_cache was set to sql_key_cache
      which was different from the dflt_key_cache_var. After sending SIGHUP,
      the server was using the original default value for the key cache hash,
      which was different from the actual key cache object used for the
      default key cache.
      
      
      include/keycache.h:
        Import patch 4285.diff
      mysys/mf_keycache.c:
        Import patch 4285.diff
      sql/mysql_priv.h:
        Import patch 4285.diff
      sql/mysqld.cc:
        Import patch 4285.diff
      sql/set_var.cc:
        Import patch 4285.diff
      sql/sql_parse.cc:
        Import patch 4285.diff
      sql/sql_show.cc:
        Import patch 4285.diff
      e432b337
  28. 12 Jan, 2005 1 commit
  29. 06 Jan, 2005 1 commit
    • unknown's avatar
      2 small fixes for binlog (sorry for grouping them - I won't do it again): · 740258fd
      unknown authored
      WL#2335 (wait if binlog or binlog index file hits disk full or quota exceeded),
      fix for BUG#7236 ("--expire_logs_days does not apply if all statements
      happen in transactions"), and a behaviour change: abort if mysqld can't start
      binlog at startup (if running with --log-bin of course).
      
      
      sql/log.cc:
        2 small fixes for binlog:
        1) We create binlog and binlog index file with flag MY_WAIT_IF_FULL, so that they have the same
        behaviour as MyISAM tables when disk is full or quota exceeded (wait, try to finish write
        every minute, warn in error log every 10 minutes). That's WL#2335.
        2) Honour expire-log-days when we write a transaction to binlog (we honoured it already when writing
        an autocommit statement). This fixes BUG#7236.
      sql/mysqld.cc:
        If we fail to create binlog or binlog index file or write to them at mysqld's startup, mysqld
        will exit. The former behaviour was to print error and continue, which led to stupid things like
        if you mispell a directory name in --log-bin, you don't immediately notice your mistake and
        you corrupt your recovery/replication. New behaviour is consistent with if you mispelt innodb_data_file_path.
      740258fd
  30. 24 Dec, 2004 1 commit
  31. 23 Dec, 2004 1 commit
    • unknown's avatar
      fix indentation · a627ffb9
      unknown authored
      add space after comma
      add space after equal
      add comments in vio_close_shared_memory()
      
      
      include/violite.h:
        fix indentation
      sql-common/client.c:
        fix identation
      sql/mysqld.cc:
        add space after comma
      vio/vio.c:
        add space after equal
        fix identation
      vio/viosocket.c:
        add space after comma
        add comments in vio_close_shared_memory()
      a627ffb9
  32. 22 Dec, 2004 1 commit
    • unknown's avatar
      changed name of g_eventLogger so it can be used in TransporterRegistry and is... · d5711a28
      unknown authored
      changed name of g_eventLogger so it can be used in TransporterRegistry and is the same as in the kernel
      
      
      ndb/include/ndbapi/ndb_cluster_connection.hpp:
        changed return type of no_ndb_nodes
      ndb/include/transporter/TransporterRegistry.hpp:
        added connect_server method to TransporterRegistry
      ndb/include/util/ndb_opts.h:
        set shared memory usage as _no_ default in 4.1
      ndb/src/common/transporter/Makefile.am:
        added -I flags for EventLogger.hpp
      ndb/src/common/transporter/SCI_Transporter.cpp:
        setting transporter type
      ndb/src/common/transporter/SHM_Transporter.cpp:
        setting transporter type
      ndb/src/common/transporter/TCP_Transporter.cpp:
        setting transporter type
      ndb/src/common/transporter/Transporter.cpp:
        added event logger
        added type handling in transporter
        added verification of transporter type compatability
      ndb/src/common/transporter/Transporter.hpp:
        setting transporter type
      ndb/src/common/transporter/TransporterRegistry.cpp:
        moved server-client transporter negotiation to own method connect_server()
        added verification of transporter compatability
      ndb/src/kernel/main.cpp:
        changed which events are logged
      ndb/src/ndbapi/ndb_cluster_connection.cpp:
        added g_eventLogger
      sql/mysqld.cc:
        set shared memory usage as _no_ default in 4.1
      d5711a28