1. 22 Mar, 2006 1 commit
    • unknown's avatar
      Define USE_TLS when compiling libmysql.dll, to avoid crashing when · b082c999
      unknown authored
      loaded at runtime.
      
      
      extra/comp_err.c:
        Don't use DBUG after my_end, crashes on Windows with USE_TLS.
      include/my_dbug.h:
        Add missing DBUG_LEAVE in non-debug builds.
      include/my_pthread.h:
        Add comment explaining USE_TLS.
      libmysql/cmakelists.txt:
        Add USE_TLS to avoid crashing when loading libmysql.dll at runtime.
      mysys/cmakelists.txt:
        Add USE_TLS to avoid crashing when loading libmysql.dll at runtime.
      mysys/my_init.c:
        Don't use DBUG after my_thread_end(), as it crashes on Windows TLS.
      b082c999
  2. 14 Feb, 2006 1 commit
    • unknown's avatar
      dbug changes: · d8078c16
      unknown authored
      1. dbug state is now local to a thread
      2. new macros: DBUG_EXPLAIN, DBUG_EXPLAIN_INITIAL,
         DBUG_SET, DBUG_SET_INITIAL, DBUG_EVALUATE, DBUG_EVALUATE_IF
      3. macros are do{}while(0) wrapped
      4. incremental modifications to the dbug state (e.g. "+d,info:-t")
      5. dbug code cleanup, style fixes
      6. _db_on_ and DEBUGGER_ON/OFF removed
      7. rest of MySQL code fixed because of 3 (missing ;) and 6
      8. dbug manual updated
      9. server variable @@debug (global and local) to control dbug from SQL!
      a. -#T to print timestamps in the log
      
      
      BitKeeper/deleted/.del-readme.prof~2f3bae1550a0038d:
        Delete: dbug/readme.prof
      client/mysqlslap.c:
        typo fixed
      configure.in:
        test for sleep() too
      dbug/dbug.c:
        thread local dbug settings
        DBUG_EXPLAIN,DBUG_EXPLAIN_INITIAL,DBUG_SET,DBUG_SET_INITIAL
        style changes to be more in line with MySQL code
        cleanup (many mallocs removed)
        incremental modification of dbug state (e.g. DBUG_PUSH("+t:-d,info"))
        DBUG_SET, _db_explain_
        -#T
      dbug/monty.doc:
        obsolete and duplicate doc...
      d8078c16
  3. 03 Feb, 2006 2 commits
    • unknown's avatar
      WL 2826: Eigth step · 5336341b
      unknown authored
      Inserted monty patch to allow for adding and dropping
      DBUG keywords per thread
      
      
      dbug/dbug.c:
        Inserted monty patch to allow for adding and dropping
        DBUG keywords per thread
      include/my_dbug.h:
        Inserted monty patch to allow for adding and dropping
        DBUG keywords per thread
      5336341b
    • unknown's avatar
      WL 2826: Seventh step, more fixes for error injects · 6a897b54
      unknown authored
      Removed session variables for error injects
      started using DBUG macros for error injects
      
      
      include/my_dbug.h:
        Added new DBUG macros
      sql/sql_class.cc:
        Removed session variables for error injects
      sql/sql_class.h:
        Removed session variables for error injects
      sql/mysql_priv.h:
        Changed ERROR INJECT macros to use DBUG macros
      sql/mysqld.cc:
        Removed session variables for error injects
      sql/set_var.cc:
        Removed session variables for error injects
      6a897b54
  4. 18 May, 2005 4 commits
    • unknown's avatar
      Fixed bug from last push · fcb1b160
      unknown authored
      fcb1b160
    • unknown's avatar
      Fix a couple of compilation failures. · 14d51748
      unknown authored
      include/my_dbug.h:
        Fix conflicting declaration and definition of db_output.
      sql/mysqld.cc:
        Fix a compilation failure.
      14d51748
    • unknown's avatar
      Fix conflicting declaration and definition of db_output (compilation · df734327
      unknown authored
      failure).
      
      
      include/my_dbug.h:
        Fix conflicting declaration and definition of db_output.
      df734327
    • unknown's avatar
      Fix warnings from icc · ac76b152
      unknown authored
      Added BUILD scripts for icc
      Fixed (one time) memory leak in grant handling
      
      
      config/ac-macros/misc.m4:
        Remove warnings flags from icc when compiling with -Werror
      configure.in:
        Remove warnings flags from icc when compiling with -Werror
      extra/replace.c:
        Fix warnings from icc
      include/my_dbug.h:
        Fix warnings from icc
      sql/gen_lex_hash.cc:
        Fix warnings from icc
      sql/mysql_priv.h:
        Add missing variables
      sql/mysqld.cc:
        Fix warnings from icc:
        - made a lot of variables static
        - Removing some not used variables
        - Fixed wrong printf()
        - removed extern "C" from some functions
      sql/spatial.h:
        Fix warnings from icc
      sql/sql_acl.cc:
        Fixed memory leak
      sql/sql_lex.cc:
        Fix warnings from icc
      sql/sql_lex.h:
        Fix warnings from icc
      ac76b152
  5. 10 Nov, 2004 1 commit
    • unknown's avatar
      More debugging · 3b4ff971
      unknown authored
      Print position in normal log for Binlog dump
      
      
      dbug/dbug.c:
        Added DBUG_OUTPUT() to temporary start/stop trace-file output
        Optimized alignment of CODE_STATE structure
      include/my_dbug.h:
        Added DBUG_OUTPUT() to temporary start/stop trace-file output
      sql/field.cc:
        Safety fix when used with future 5.0 .frm tables
      sql/log.cc:
        More debugging
      sql/mysqld.cc:
        Fixed type
      sql/slave.cc:
        Fixed wrong cast (not a bug)
      sql/sql_class.h:
        More DBUG output
      sql/sql_parse.cc:
        Print position in normal log for Binlog dump
      3b4ff971
  6. 04 Nov, 2004 1 commit
    • unknown's avatar
      dbug: DBUG_EXECUTE_IF macro, build user manual automatically, document all features · 585a2eda
      unknown authored
      charset2html moved from mysys to extra
      ignore: new files added, garbage removed
      
      
      extra/charset2html.c:
        Rename: mysys/charset2html.c -> extra/charset2html.c
      configure.in:
        remove historical difference between test_thr_alarm, test_thr_lock and
        six newer mysys/test_* programs
        build dbug after mysys
      dbug/Makefile.am:
        build utils and examples, build manual
      dbug/dbug.c:
        cleanup
        DBUG_EXECUTE_IF macro
      dbug/dbug_analyze.c:
        fix it to run
      dbug/dbug_long.h:
        warning added
      dbug/main.c:
        fix it to run
      dbug/user.r:
        formating cleanup
        all undocumented features documented
      extra/Makefile.am:
        charset2html moved from mysys
      include/my_dbug.h:
        DBUG_EXECUTE_IF() macro
      mysys/Makefile.am:
        charset2html moved to extra
      BitKeeper/etc/ignore:
        new files added, garbage removed
      585a2eda
  7. 27 Jun, 2004 1 commit
    • unknown's avatar
      Added missing my_time.c file to mysqlclient project · 7da47eeb
      unknown authored
      Moved include <assert.h> to my_global.h
      
      
      VC++Files/client/mysqlclient.dsp:
        Added missing my_time.c file to mysqlclient project
      include/my_dbug.h:
        Moved include <assert.h> to my_global.h
        Removed NDEBUG as asserts should be indenpendent of if we are using DBUG or not
      include/my_global.h:
        Added assert.h as this is included in a lot of places
      sql/sql_table.cc:
        Initialize forgotten variable
      7da47eeb
  8. 15 Jun, 2004 1 commit
  9. 10 Jun, 2004 1 commit
    • 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
  10. 17 Mar, 2003 1 commit
    • unknown's avatar
      Change dbug.h -> my_dbug.h (Portability fix) · 18a2030d
      unknown authored
      Ensure that \ is not allowed in filenames, even on Unix
      
      
      include/my_dbug.h:
        Rename: include/dbug.h -> include/my_dbug.h
      include/Makefile.am:
        Change dbug.h -> my_dbug.h
      include/my_global.h:
        Change dbug.h -> my_dbug.h
      libmysql/get_password.c:
        Change dbug.h -> my_dbug.h
      libmysqld/lib_vio.c:
        Change dbug.h -> my_dbug.h
      sql/table.cc:
        Ensure that \ is not allowed in filenames, even on Unix
      18a2030d
  11. 06 Dec, 2001 1 commit
    • unknown's avatar
      Update copyright · 2306379e
      unknown authored
      Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
      
      
      client/client_priv.h:
        Update copyright
      client/completion_hash.cc:
        Update copyright
      client/completion_hash.h:
        Update copyright
      client/connect_test.c:
        Update copyright
      client/errmsg.c:
        Update copyright
      client/get_password.c:
        Update copyright
      client/insert_test.c:
        Update copyright
      client/list_test.c:
        Update copyright
      client/my_readline.h:
        Update copyright
      client/mysql.cc:
        Update copyright
      client/mysqladmin.c:
        Update copyright
      client/mysqlbinlog.cc:
        Update copyright
      client/mysqlcheck.c:
        Update copyright
      client/mysqldump.c:
        Update copyright
      client/mysqlimport.c:
        Update copyright
      client/mysqlmanager-pwgen.c:
        Update copyright
      client/mysqlmanagerc.c:
        Update copyright
      client/mysqlshow.c:
        Update copyright
      client/mysqltest.c:
        Update copyright
      client/password.c:
        Update copyright
      client/readline.cc:
        Update copyright
      client/select_test.c:
        Update copyright
      client/showdb_test.c:
        Update cop...
      2306379e
  12. 08 Sep, 2001 1 commit
    • unknown's avatar
      More debug info · 4f08177e
      unknown authored
      Fix DBUG_ASSERT()
      Optimization for BDB tables
      Fix for BDB under Win98
      
      
      Docs/manual.texi:
        Removed wrong info
      bdb/os_win32/os_rename.c:
        Fix for windows 98
      configure.in:
        Better options for MAC OS X
      include/dbug.h:
        Fix DBUG_ASSERT()
      mysys/thr_lock.c:
        More DBUG messages
      sql/ha_berkeley.cc:
        Use cursor in remove_key
      sql/lock.cc:
        Fix possible problem when pre-unlocking tables in SELECT
      sql/sql_select.cc:
        More DBUG messages
      sql/violite.c:
        Fix DBUG messages
      4f08177e
  13. 07 Sep, 2000 1 commit
    • unknown's avatar
      Small bug fixes · 71132e8f
      unknown authored
      support-files/mysql.server-sys5.sh:
        Change mode to -rw-rw-r--
      Docs/manual.texi:
        Added information about BeOS, Access 2000, AIX and user links
      client/mysql.cc:
        Fixed SOURCE to work on windows
      client/mysqldump.c:
        Strip of white space
      configure.in:
        Fix for AIX
      include/dbug.h:
        Assert handling
      include/my_pthread.h:
        Ia64 needs more thread stack than other processors
      include/my_sys.h:
        More comments
      myisam/mi_key.c:
        Fixed wrong key length checks
      mysql.proj:
        update
      mysys/charset.c:
        Cleanup
      mysys/mf_keycache.c:
        Moved SEC_LINK to file that used it
      mysys/my_static.h:
        Moved SEC_LINK to file that used it
      scripts/Makefile.am:
        Fix for debian
      scripts/mysql_install_db.sh:
        Cleanup
      sql/gen_lex_hash.cc:
        Better values
      sql/ha_berkeley.cc:
        Fix of reading of unique key
      sql/handler.cc:
        Fix memory allocation bug
      sql/mysqld.cc:
        Fix for Ia64
      sql/share/charsets/latin1.conf:
        Fixed sortorder back to scandinavian.
      sql/sql_yacc.yy:
        FULL shouldn't be a keyword
      support-files/Makefile.am:
        Fix for debian
      support-files/mysql.server.sh:
        Cleanups
      71132e8f
  14. 31 Jul, 2000 1 commit
    • unknown's avatar
      Import changeset · 2e94af46
      unknown authored
      Docs/Flags/australia.eps:
        First import - 3.23.10
      Docs/Flags/australia.gif:
        First import - 3.23.10
      Docs/Flags/australia.txt:
        First import - 3.23.10
      Docs/Flags/austria.eps:
        First import - 3.23.10
      Docs/Flags/austria.gif:
        First import - 3.23.10
      Docs/Flags/austria.txt:
        First import - 3.23.10
      Docs/Flags/brazil.eps:
        First import - 3.23.10
      Docs/Flags/brazil.gif:
        First import - 3.23.10
      Docs/Flags/brazil.txt:
        First import - 3.23.10
      Docs/Flags/bulgaria.eps:
        First import - 3.23.10
      Docs/Flags/bulgaria.gif:
        First import - 3.23.10
      Docs/Flags/bulgaria.txt:
        First import - 3.23.10
      Docs/Flags/canada.eps:
        First import - 3.23.10
      Docs/Flags/canada.gif:
        First import - 3.23.10
      Docs/Flags/canada.txt:
        First import - 3.23.10
      Docs/Flags/chile.eps:
        First import - 3.23.10
      Docs/Flags/chile.gif:
        First import - 3.23.10
      Docs/Flags/chile.txt:
        First import - 3.23.10
      Docs/Flags/china.eps:
        First import - 3.23.10
      Docs/Flags/china.gif:
        First import - 3.23.10
      Docs/Flags/china.txt:
        First...
      2e94af46