mariadb/scripts
Michael Widenius 3c78bfe7f1 Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table.
- The client gets a progress report message that triggers a callback function if requested with mysql_options(MYSQL_PROGRESS_CALLBACK, function)
- Added Progress field last to 'show processlist'
- Stage, Max_stage and Progress field added to information_schema.progresslist
- The 'mysql' client by defaults enables progress reports when the output is a tty.
- Added progress_report_time time variable to configure how often progress reports is sent to client
Added read only system variable 'in_transaction' which is 1 if we have executed a BEGIN statement.


client/client_priv.h:
  Added OPT_REPORT_PROGRESS
client/mysql.cc:
  Added option --progress-reports (on by default if not batch mode)
  Progress reports is written to stdout for long running commands
include/Makefile.am:
  Added mysql/service_progress_report.h
include/myisamchk.h:
  Added variables to be able to do progress reporting in Aria and later in MyISAM
include/mysql.h:
  Added new mysql_options() parameter: MYSQL_PROGRESS_CALLBACK
include/mysql.h.pp:
  Added new mysql_options() parameter: MYSQL_PROGRESS_CALLBACK
include/mysql/plugin.h:
  Added functions for reporting progress.
include/mysql/plugin_auth.h.pp:
  Added functions for reporting progress.
include/mysql_com.h:
  Added CLIENT_PROGRESS mysql_real_connect() flag.
include/sql_common.h:
  Added callback function for reporting progress
mysql-test/r/old-mode.result:
  Ensure that SHOW PROGRESSLIST doesn't have the Progress column in old mode.
mysql-test/suite/funcs_1/datadict/datadict_priv.inc:
  Added new column
mysql-test/suite/funcs_1/datadict/processlist_priv.inc:
  Test all new PROCESSLIST columns
mysql-test/suite/funcs_1/r/is_columns_is.result:
  Updated results
mysql-test/suite/funcs_1/r/is_columns_is_embedded.result:
  Updated results
mysql-test/suite/funcs_1/r/is_columns_mysql_embedded.result:
  Updated results
mysql-test/suite/funcs_1/r/is_tables_is_embedded.result:
  Updated results
mysql-test/suite/funcs_1/r/processlist_priv_no_prot.result:
  Updated results
mysql-test/suite/funcs_1/r/processlist_priv_ps.result:
  Updated results
mysql-test/suite/funcs_1/r/processlist_val_no_prot.result:
  Updated results
mysql-test/suite/funcs_1/r/processlist_val_ps.result:
  Updated results
mysql-test/suite/pbxt/r/pbxt_locking.result:
  Updated results
mysql-test/suite/pbxt/r/skip_name_resolve.result:
  Updated results
mysql-test/t/old-mode.test:
  Ensure that SHOW PROGRESSLIST doesn't have the Progress column in old mode.
plugin/handler_socket/handlersocket/Makefile.am:
  Added -lmysqlservices
scripts/mytop.sh:
  Made 'State' field width dynamic.
  Added 'Progress' to process list display.
sql-common/client.c:
  Added handling of progress messages.
  Removed check_license() function.
sql/mysql_priv.h:
  Added opt_progress_report_time
sql/mysqld.cc:
  Added progress_report_time time variable to configure how often progress reports is sent to client
sql/protocol.cc:
  Added net_send_progress_packet()
sql/protocol.h:
  New prototypes
sql/set_var.cc:
  Added variables progress_report_time and in_transaction
sql/sql_acl.cc:
  Safety fix: Made client_capabilities ulonglong
sql/sql_class.cc:
  Added interface functions for progress reporting
sql/sql_class.h:
  Added varibles in THD for progress reporting.
  Added CF_REPORT_PROGRESS
sql/sql_load.cc:
  Added progress reporting for LOAD DATA INFILE
sql/sql_parse.cc:
  Added CF_REPORT_PROGRESS for top level commands for which it's safe to send progress reports to client
sql/sql_show.cc:
  Added Progress field last to 'show processlist'
  Stage, Max_stage and Progress field added to information_schema.progresslist
sql/sql_table.cc:
  Added progress reporting for ALTER TABLE
  Added THD as argument to copy_data_between_tables()
storage/maria/ha_maria.cc:
  Added progress reporting for check table, repair table, analyze table
  Fixed a bug in start_bulk_insert() that caused alter table to always run with all keys enabled.
storage/maria/ma_check.c:
  Added progress reporting
  Remember old state before starting repair. This removes some warnings from optimize_table if create-with-sort fails.
storage/maria/ma_check_standalone.h:
  Added dummy reporting function for standalone Aria programs.
storage/maria/ma_sort.c:
  Added progress reporting
storage/maria/maria_chk.c:
  Updated version
storage/maria/maria_def.h:
  Added new prototypes
tests/mysql_client_test.c:
  Added test case for progress reporting
2011-07-01 15:08:30 +03:00
..
.cvsignore
CMakeLists.txt Added mytop to distribution (with some small trivial changes to make it workg good also for MariaDB) 2011-06-27 19:30:05 +03:00
comp_sql.c fix warning 2011-03-11 16:06:35 +01:00
convert-debug-for-diff.sh Trivial fixes, more safe DBUG_ASSERT()'s and some more DBUG_ 2010-08-23 12:52:57 +03:00
fill_help_tables.sql Merge with MySQL 5.1.55 2011-02-20 18:51:43 +02:00
make_binary_distribution.sh Added mytop to distribution (with some small trivial changes to make it workg good also for MariaDB) 2011-06-27 19:30:05 +03:00
make_sharedlib_distribution.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
make_win_bin_dist Added mytop to distribution (with some small trivial changes to make it workg good also for MariaDB) 2011-06-27 19:30:05 +03:00
Makefile.am Added mytop to distribution (with some small trivial changes to make it workg good also for MariaDB) 2011-06-27 19:30:05 +03:00
msql2mysql.sh gen_lex_hash.cc: 2007-01-31 00:06:42 +01:00
mysql_config.pl.in We are now using Valgrind rather than purify, and have for quite some time. 2009-05-06 14:03:24 +02:00
mysql_config.sh We are now using Valgrind rather than purify, and have for quite some time. 2009-05-06 14:03:24 +02:00
mysql_convert_table_format.sh Don't do DBUG_ASSERT for checksum errors when using REPAIR 2011-01-07 17:58:12 +02:00
mysql_find_rows.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysql_fix_extensions.sh - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
mysql_fix_privilege_tables.sh Ensure that all clients reads the appropriate 'client', client-mariadb and 'mariadb' sections from my.cnf 2011-03-18 17:03:43 +02:00
mysql_install_db.pl.in Merge with base 5.2 2011-03-23 19:22:38 +02:00
mysql_install_db.sh merge 2011-03-26 00:15:33 +01:00
mysql_secure_installation.pl.in Bug #54004 : mysql_secure_installation identifies "local host" incorrectly 2010-07-14 13:53:49 +03:00
mysql_secure_installation.sh Ensure that all clients reads the appropriate 'client', client-mariadb and 'mariadb' sections from my.cnf 2011-03-18 17:03:43 +02:00
mysql_setpermission.sh Merge 2010-12-29 00:47:05 +01:00
mysql_system_tables.sql Merge with 5.1-microseconds 2011-05-28 05:11:32 +03:00
mysql_system_tables_data.sql Merge 2010-12-29 00:47:05 +01:00
mysql_system_tables_fix.sql Merge with 5.1-microseconds 2011-05-28 05:11:32 +03:00
mysql_test_data_timezone.sql - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
mysql_zap.sh Merge up 5.0-build into 5.1-build: 2009-05-29 15:40:55 +02:00
mysqlaccess.conf
mysqlaccess.sh - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
mysqlbug.sh Fix test suite so that it works when doing configure --without-uca 2009-12-27 15:54:41 +02:00
mysqld_multi.sh Ensure that all clients reads the appropriate 'client', client-mariadb and 'mariadb' sections from my.cnf 2011-03-18 17:03:43 +02:00
mysqld_safe.sh Added --log-basename to mysqld to allow one to set the prefix for all logs with one command 2011-03-23 17:59:41 +02:00
mysqldumpslow.sh Ensure that all clients reads the appropriate 'client', client-mariadb and 'mariadb' sections from my.cnf 2011-03-18 17:03:43 +02:00
mysqlhotcopy.sh wl#173 - temporal types with sub-second resolution 2011-03-01 13:24:36 +01:00
mytop.sh Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00