1. 10 Aug, 2005 1 commit
    • unknown's avatar
      block using QC in case of having tables locked by LOCK... (BUG#12385) · f6f34c13
      unknown authored
      
      sql/sql_cache.cc:
        block QC using if tables are locked with LOCK
        unlock QC
      mysql-test/r/query_cache_noembeded.result:
        New BitKeeper file ``mysql-test/r/query_cache_noembeded.result''
      mysql-test/t/query_cache_noembeded.test:
        New BitKeeper file ``mysql-test/t/query_cache_noembeded.test''
      f6f34c13
  2. 04 Aug, 2005 5 commits
  3. 03 Aug, 2005 3 commits
    • unknown's avatar
      ha_innodb.cc: · 29acaac9
      unknown authored
        Fix compilation error in previous commit
      
      
      sql/ha_innodb.cc:
        Fix compilation error in previous commit
      29acaac9
    • unknown's avatar
      ha_innodb.cc: · b0018f8a
      unknown authored
        Backport of Bug #9670 to 4.0: assertion failure in ut_a(cursor->old_stored == BTR_PCUR_OLD_STORED)
      
      
      sql/ha_innodb.cc:
        Backport of Bug #9670 to 4.0: assertion failure in ut_a(cursor->old_stored == BTR_PCUR_OLD_STORED)
      b0018f8a
    • unknown's avatar
      Merge bk@192.168.21.1:/usr/home/bk/mysql-4.0 · b03eb5ea
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.0.10226
      
      b03eb5ea
  4. 02 Aug, 2005 1 commit
    • unknown's avatar
      BUG#11684 fix. · 0d58b735
      unknown authored
      Repair crashes mysql when table has fulltext index.
      
      
      myisam/sort.c:
        Use static ft_buf instead of dynamic mergebuf. Latter could be NULL if record has long words.
      mysql-test/r/fulltext.result:
        Test case for BUG#11684 - repair crashes mysql when table has fulltext index.
      mysql-test/t/fulltext.test:
        Test case for BUG#11684 - repair crashes mysql when table has fulltext index.
      0d58b735
  5. 01 Aug, 2005 1 commit
    • unknown's avatar
      BUG 11104 (same as changeset 1.1891 on the 5.0 tree, but realised this · 531735d5
      unknown authored
      needed to be fixed in earlier versions)
      Fixed the iteration of how substrings are handled with negative indexes in 
      SUBSTRING_INDEX
      
      
      mysql-test/r/func_str.result:
        New results for the fix to substring_index
      mysql-test/t/func_str.test:
        Added tests for fix to substring_index, various lenth search patterns. Also included
        are the queuries the user who reported the bug listed in the bug report
      sql/item_strfunc.cc:
        Fix to BUG 11104 
            Took out the offset-=delimiter_length-1 out of the for loop. It was causing
            basically this: 
            select substring_index('the king of the the hill', 'the', -2) to not work.
            The first iteration, offset would be initialised to 24, then strstr would 
            point at 'the king of the the* hill' ('*'means right before the 
            character following), returning a offset of 16. The for loop would then 
            decrement offset by two (3 - 1), to 14, now pointing at 
            "the king of th*e the hill", _skipping_ past the 'e' in the second to last
            'the', and therefore strstr would never have a chance of matching the 
            second to last 'the', then moving on to the 'the' at the begginning of the 
            string!
        
            In a nutshell, offset was being decremented by too great a value, preventing
            the second to last 'the' from being ever found, hence the result of 
            'king of the the hill' from the query that is reported in the bug report
      531735d5
  6. 28 Jul, 2005 2 commits
  7. 27 Jul, 2005 2 commits
  8. 26 Jul, 2005 1 commit
    • unknown's avatar
      Review fixes: · a5240d7d
      unknown authored
      Fixed portability problem with bool in C programs
      Moved close_thread_tables out from LOCK_thread_count mutex (safety fix)
      my_sleep() -> pthread_cond_timedwait()
      
      
      include/thr_lock.h:
        bool -> my_bool (bool is not portable in C programs)
      mysys/thr_lock.c:
        bool -> my_bool (bool is not portable in C programs)
      sql/lock.cc:
        Added comment
        Don't use | on bool variable
      sql/mysql_priv.h:
        Added comment
      sql/slave.cc:
        Moved close_thread_tables out from LOCK_thread_count mutex (safety fix)
      sql/sql_base.cc:
        Added comments
        my_sleep() -> pthread_cond_timedwait() to get less code and potentitally faster loop
      BitKeeper/etc/ignore:
        added ac_available_languages_fragment
      a5240d7d
  9. 25 Jul, 2005 1 commit
    • unknown's avatar
      - Make sure the scripts make_binary_distribution, make_sharedlib_distribution and · ef3e6f22
      unknown authored
        make_win_src_distribution are created, but not installed
      - removed make_win_binary_distribution.sh as it's obsolete and outdated
      
      
      BitKeeper/deleted/.del-make_win_binary_distribution.sh~e0fbb0a75af0dcd3:
        Delete: scripts/make_win_binary_distribution.sh
      scripts/Makefile.am:
        - Make sure the scripts make_binary_distribution, make_sharedlib_distribution and
          make_win_src_distribution are created, but not installed. This is the proper fix
          for what I began in the previous ChangeSet
        - removed make_win_binary_distribution.sh from the distribution, as it's obsolete
          and outdated
      ef3e6f22
  10. 22 Jul, 2005 3 commits
  11. 21 Jul, 2005 2 commits
  12. 20 Jul, 2005 2 commits
    • unknown's avatar
      Bug #10600 After review fixes · 1b6ac530
      unknown authored
      
      sql/lock.cc:
        Used flags immediately in call
      sql/mysql_priv.h:
        Added RTFC (short for remove_table_from_cache)
        for constants and used hex syntax to clarify it is bits
        in the flags
      sql/sql_base.cc:
        Use flags parameter immediately and use flags immediately in call
        Change to other variant of eternal loop variant
      sql/sql_table.cc:
        Use flags immediately in call
      1b6ac530
    • unknown's avatar
      - don't install the Mac OS X support files when running "make install" - · 13622886
      unknown authored
        they're not needed outside of the source tree (BUG#12057)
      - Removed some more unneeded files from "make install" along the way
      
      
      scripts/Makefile.am:
        - don't install the following files with "make install", as they are
          not needed to be installed: 
          make_win_src_distribution, make_win_binary_distribution,
          make_binary_distribution, make_sharedlib_distribution
      support-files/MacOSX/Makefile.am:
        - don't install the Mac OS X support files when running "make install" -
          they're not needed outside of the source tree (BUG#12057)
      support-files/Makefile.am:
        - don't install the RPM spec files with "make install" - they are not
          needed outside of the source tree
      13622886
  13. 18 Jul, 2005 1 commit
    • unknown's avatar
      Bug #10600 · bca6da54
      unknown authored
      remove_table_from_cache fails to signal other thread and gets
      blocked when other thread also gets blocked
      
      
      include/thr_lock.h:
        Report if any threads was signalled
      mysys/thr_lock.c:
        Report if any threads was signalled
      sql/lock.cc:
        Report if any threads was signalled
        Use new interface for remove_table_from_cache
      sql/mysql_priv.h:
        New interface for remove_table_from_cache
        + mysql_lock_abort_for_thread
      sql/sql_base.cc:
        Use new interface of remove_table_cache
        Rewrote remove_table_from_cache to fix bug
      sql/sql_table.cc:
        Use new interface of remove_table_from_cache
      bca6da54
  14. 15 Jul, 2005 1 commit
    • unknown's avatar
      RPM spec file improvements: · e944ba20
      unknown authored
      - create a "mysql" user group and assign the mysql user account to that group
        in the server postinstall section. (BUG 10984)
      - backported some changes from the 4.1 RPM spec file (cleanups: removed the incomplete
        Brazilian translations, more consequent use of macros)
      
      
      support-files/mysql.spec.sh:
        - create a "mysql" user group and assign the mysql user account to that group
          in the server postinstall section. (BUG 10984)
        - backported some changes from the 4.1 RPM spec file (cleanups: removed the incomplete
          Brazilian translations, more consequent use of macros)
      e944ba20
  15. 14 Jul, 2005 1 commit
    • unknown's avatar
      BUG#11384 drop database causes mysqld to core · 9d36ccf2
      unknown authored
      Only reproducable in 5.1-wl2325, although the missing code is missing from 4.0 and up.
      
      
      sql/slave.cc:
        Clean up after slave sql thread when exiting.
        
        Wasn't calling close_thread_tables().
        
        This was causing a crashing bug in the 5.1-wl2325 tree. It is conceivable that this
        could cause a problem in earlier versions, but we have not been able to reproduce.
      9d36ccf2
  16. 06 Jul, 2005 1 commit
    • unknown's avatar
      - backported a change for make_binary_distribution.sh from 5.0 for easier building of · 622cd702
      unknown authored
        all versions: added an option "--machine" that allows to override the autodetected
        architecture string (e.g. "i386") that becomes part of the binary package name with 
        a different one
      - moved the removal of the BASE directory to the end of the make_binary_distribution
        script
      
      
      scripts/make_binary_distribution.sh:
        - backported and fixed a change from 5.0 for easier building of all versions: added an
          option "--machine" that allows to override the autodetected architecture string 
          (e.g. "i386") that becomes part of the binary package name with a different one
        - moved the removal of the BASE directory to the end of the script
      622cd702
  17. 05 Jul, 2005 1 commit
  18. 04 Jul, 2005 2 commits
  19. 02 Jul, 2005 1 commit
    • unknown's avatar
      configure.in: · 8c4d2838
      unknown authored
        Enable build with CXX=gcc and gcc version 4
      
      
      configure.in:
        Enable build with CXX=gcc and gcc version 4
      8c4d2838
  20. 30 Jun, 2005 1 commit
  21. 23 Jun, 2005 1 commit
  22. 08 Jun, 2005 1 commit
    • unknown's avatar
      Fix for · 72793e7b
      unknown authored
      BUG#10675 - MySQL fails to build with --openssl on Mac OS X 10.4
      BUG#11150 - HP-UX yaSSL/OpenSSL configure/header problem
      Remove obsolete code.
      
      
      include/my_global.h:
        Obsolete code removed. OpenSSL doesn't have crypt anymore (it was dropped in ~2003).
        This patch fixes compilation failures with both OpenSSL and yaSSL on systems where
        crypt was defined in unistd.h.
        Conclusion is we do not use OpenSSL's crypt unless it wasn't defined in
        unistd.h/crypt.h and it was defined in old OpenSSL.
      72793e7b
  23. 06 Jun, 2005 1 commit
  24. 03 Jun, 2005 4 commits
    • unknown's avatar
      Bug #10901 · c17c03f2
      unknown authored
      After review fix
      Copy from internal state to share state only when in lock write
      mode (happens only when lock table x write has been performed since
      update_state_info is only called when holding a TL_READ_NO_INSERT
      lock normally. Previous patch would have failed in combination with
      delayed writes.
      
      c17c03f2
    • unknown's avatar
      Bug #10901 · 74126079
      unknown authored
      Analyze table corrupts the state on
      data_file_length, records, index_file_length...
      by writing the shared state when there is an updated internal
      state due to inserts or deletes
      Fixed by synching the shared state with the internal state before
      writing it to disk
      Added test cases of 2 error cases and a normal case in new
      analyze test case
      
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      74126079
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.0/ · cf0f4a63
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.0
      
      cf0f4a63
    • unknown's avatar
      *don't* mess with kernel defines, boy. · 54f236d6
      unknown authored
      and HAVE_ATOMIC_ADD/HAVE_ATOMIC_SUB is tested in configure
      
      54f236d6