diff options
author | heikki@hundin.mysql.fi <> | 2002-07-31 00:47:20 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2002-07-31 00:47:20 +0300 |
commit | bbb8125a2cad4845a61efe0f63906bd0cb64ec20 (patch) | |
tree | c292c07f8ce5669e3036ef6b705c347df3e64c0c /innobase/srv | |
parent | c5bdaee9ad98c363d16c97292d14eb0ce2a890b9 (diff) | |
download | mariadb-git-bbb8125a2cad4845a61efe0f63906bd0cb64ec20.tar.gz |
Many files:
Merge InnoDB-3.23.52c; improve AUTO-INC algorithm with SHOW TABLE STATUS; new checksum in log
Diffstat (limited to 'innobase/srv')
-rw-r--r-- | innobase/srv/srv0srv.c | 13 | ||||
-rw-r--r-- | innobase/srv/srv0start.c | 28 |
2 files changed, 40 insertions, 1 deletions
diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c index 80de52dc4a1..3af2d96d921 100644 --- a/innobase/srv/srv0srv.c +++ b/innobase/srv/srv0srv.c @@ -2475,12 +2475,23 @@ srv_error_monitor_thread( void* arg) /* in: a dummy parameter required by os_thread_create */ { + ulint cnt = 0; + UT_NOT_USED(arg); loop: srv_error_monitor_active = TRUE; - os_thread_sleep(10000000); + cnt++; + + os_thread_sleep(2000000); + +/* mem_print_new_info(); + + if (cnt % 10 == 0) { + mem_print_info(); + } +*/ sync_array_print_long_waits(); /* Flush stdout and stderr so that a database user gets their output diff --git a/innobase/srv/srv0start.c b/innobase/srv/srv0start.c index 9768d484ce6..b35bca1ea8e 100644 --- a/innobase/srv/srv0start.c +++ b/innobase/srv/srv0start.c @@ -927,6 +927,8 @@ innobase_start_or_create_for_mysql(void) ulint max_arch_log_no; ibool start_archive; ulint sum_of_new_sizes; + ulint sum_of_data_file_sizes; + ulint tablespace_size_in_header; ulint err; ulint i; ulint k; @@ -1324,7 +1326,33 @@ innobase_start_or_create_for_mysql(void) os_thread_create(&srv_master_thread, NULL, thread_ids + 1 + SRV_MAX_N_IO_THREADS); /* buf_debug_prints = TRUE; */ + + sum_of_data_file_sizes = 0; + for (i = 0; i < srv_n_data_files; i++) { + sum_of_data_file_sizes += srv_data_file_sizes[i]; + } + + tablespace_size_in_header = fsp_header_get_tablespace_size(0); + + if (!srv_auto_extend_last_data_file + && sum_of_data_file_sizes != tablespace_size_in_header) { + + fprintf(stderr, +"InnoDB: Error: tablespace size stored in header is %lu pages, but\n" +"InnoDB: the sum of data file sizes is %lu pages\n", + tablespace_size_in_header, sum_of_data_file_sizes); + } + + if (srv_auto_extend_last_data_file + && sum_of_data_file_sizes < tablespace_size_in_header) { + + fprintf(stderr, +"InnoDB: Error: tablespace size stored in header is %lu pages, but\n" +"InnoDB: the sum of data file sizes is only %lu pages\n", + tablespace_size_in_header, sum_of_data_file_sizes); + } + ut_print_timestamp(stderr); fprintf(stderr, " InnoDB: Started\n"); |