1. 24 Aug, 2007 2 commits
    • gkodinov/kgeorge@magare.gmz's avatar
      Bug #28284: Test "mysqlslap" reports "out of memory" · 63d18a60
      gkodinov/kgeorge@magare.gmz authored
      When locking a "fast" mutex a static variable cpu_count 
      was used as a flag to initialize itself on the first usage 
      by calling sysconf() and setting non-zero value.
      This is not thread and optimization safe on some 
      platforms. That's why the global initialization needs 
      to be done once in a designated function.
      This will also speed up the usage (by a small bit) 
      because it won't have to check if it's initialized on
      every call.
      
      Fixed by moving the fast mutexes initialization out of 
      my_pthread_fastmutex_lock() to fastmutex_global_init()
      and call it from my_init()
      63d18a60
    • holyfoot/hf@hfmain.(none)'s avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · c4811d67
      holyfoot/hf@hfmain.(none) authored
      into  mysql.com:/home/hf/work/28430/my51-28430
      c4811d67
  2. 23 Aug, 2007 5 commits
  3. 22 Aug, 2007 3 commits
    • gshchepa/uchum@gleb.loc's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt-30201 · 3608dbdc
      gshchepa/uchum@gleb.loc authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      3608dbdc
    • gshchepa/uchum@gleb.loc's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt-30201 · 16e0a4de
      gshchepa/uchum@gleb.loc authored
      into  gleb.loc:/home/uchum/work/bk/5.0-opt
      16e0a4de
    • gshchepa/uchum@gleb.loc's avatar
      Fixed bug #30201. · f3d0f62d
      gshchepa/uchum@gleb.loc authored
      Killing a SELECT query with KILL QUERY or KILL CONNECTION
      causes a server crash if the query cache is enabled.
      
      Normal evaluation of a query may be interrupted by the
      KILL QUERY/CONNECTION statement, in this case the mysql_execute_command
      function returns TRUE, and the thd->killed flag has true value.
      In this case the result of the query may
      be cached incompletely (omitting call to query_cache_insert inside
      the net_real_write function), and next call to query_cache_end_of_result
      may lead to server crash.
      Thus, the query_cache_end_of_result function has been modified to abort
      query cache in the case of killed thread.
      f3d0f62d
  4. 21 Aug, 2007 21 commits
  5. 20 Aug, 2007 7 commits
  6. 18 Aug, 2007 2 commits