~clint-fewbar/ubuntu/lucid/mysql-dfsg-5.1/increase-killtimeout

« back to all changes in this revision

Viewing changes to sql/mysqld.cc

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Mathias Gug
  • Date: 2009-08-05 11:40:21 UTC
  • mfrom: (1.1.3 upstream) (0.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20090805114021-59bj0bgfm2ufllbk
Tags: 5.1.37-1ubuntu1
[ Mathias Gug ]
* Merge from debian unstable and 5.0, remaining changes:
  - debian/control:
    + Properly upgrade libmysqlclient16-dev packages to
    libmysqlclient-dev:
      * Make libmysqlclient16-dev a transitional package depending on
        libmysqlclient-dev.
      * Make libmysqlclient-dev replace libmysqlclient16-dev.
    + Don't provide a libmysqlclient15-dev package as long as there are
      packages still build-depending on libmysqlclient15-dev and
      mysql-dsfg-5.0 is in the archive.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    - debian/apparmor-profile: apparmor profile.
    - debian/rules, debian/mysql-server-5.1.files: install apparmor profile.
    - debian/mysql-server-5.1.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on
      purge.
    - debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    - debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    - debian/mysql-server-5.1.postinst: reload apparmor profiles.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.1.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
* debian/libmysqlclient16.symbols.amd64: remove amd64 symbols as it has
  not been correctly generated in Debian.
* Add Apport hook: (LP: #354188)
  - debian/mysql-server-5.1.py: apport package hook.
  - debian/mysql-server-5.1.files, debian/rules: install apport package
    hook.
* debian/additions/my.cnf: 
  - drop old_password option.
  - fix commented logging options to use general_log and general_log_file.
* Dropped - accepted in Debian:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
ulong slave_exec_mode_options;
508
508
const char *slave_exec_mode_str= "STRICT";
509
509
ulong thread_cache_size=0, thread_pool_size= 0;
510
 
ulong binlog_cache_size=0, max_binlog_cache_size=0;
 
510
ulong binlog_cache_size=0;
 
511
ulonglong  max_binlog_cache_size=0;
511
512
ulong query_cache_size=0;
512
513
ulong refresh_version;  /* Increments on each reload */
513
514
query_id_t global_query_id;
982
983
  }
983
984
  (void) pthread_mutex_unlock(&LOCK_thread_count);
984
985
 
 
986
  close_active_mi();
985
987
  DBUG_PRINT("quit",("close_connections thread"));
986
988
  DBUG_VOID_RETURN;
987
989
}
1663
1665
      opt_enable_named_pipe)
1664
1666
  {
1665
1667
    
1666
 
    pipe_name[sizeof(pipe_name)-1]= 0;          /* Safety if too long string */
1667
1668
    strxnmov(pipe_name, sizeof(pipe_name)-1, "\\\\.\\pipe\\",
1668
1669
             mysqld_unix_port, NullS);
1669
1670
    bzero((char*) &saPipeSecurity, sizeof(saPipeSecurity));
4779
4780
  safe_mutex_assert_owner(&LOCK_thread_count);
4780
4781
  thread_cache_size=0;                  // Safety
4781
4782
  threads.append(thd);
4782
 
  (void) pthread_mutex_unlock(&LOCK_thread_count);
4783
 
  handle_one_connection((void*) thd);
 
4783
  pthread_mutex_unlock(&LOCK_thread_count);
 
4784
  thd->start_utime= my_micro_time();
 
4785
  handle_one_connection(thd);
4784
4786
}
4785
4787
 
4786
4788
 
4805
4807
    thread_created++;
4806
4808
    threads.append(thd);
4807
4809
    DBUG_PRINT("info",(("creating thread %lu"), thd->thread_id));
4808
 
    thd->connect_utime= thd->start_utime= my_micro_time();
 
4810
    thd->prior_thr_create_utime= thd->start_utime= my_micro_time();
4809
4811
    if ((error=pthread_create(&thd->real_id,&connection_attrib,
4810
4812
                              handle_one_connection,
4811
4813
                              (void*) thd)))
6582
6584
  {"max_binlog_cache_size", OPT_MAX_BINLOG_CACHE_SIZE,
6583
6585
   "Can be used to restrict the total size used to cache a multi-transaction query.",
6584
6586
   (uchar**) &max_binlog_cache_size, (uchar**) &max_binlog_cache_size, 0,
6585
 
   GET_ULONG, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
 
6587
   GET_ULL, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONGLONG_MAX, 0, IO_SIZE, 0},
6586
6588
  {"max_binlog_size", OPT_MAX_BINLOG_SIZE,
6587
6589
   "Binary log will be rotated automatically when the size exceeds this \
6588
6590
value. Will also apply to relay logs if max_relay_log_size is 0. \