Commit b3486877 authored by sunny's avatar sunny

branches/zip: Only use my_bool when UNIV_HOTBACKUP is not defined.

parent 853162bf
...@@ -109,7 +109,11 @@ extern char* srv_arch_dir; ...@@ -109,7 +109,11 @@ extern char* srv_arch_dir;
/** store to its own file each table created by an user; data /** store to its own file each table created by an user; data
dictionary tables are in the system tablespace 0 */ dictionary tables are in the system tablespace 0 */
#ifndef UNIV_HOTBACKUP
extern my_bool srv_file_per_table; extern my_bool srv_file_per_table;
#else
extern ibool srv_file_per_table;
#endif /* UNIV_HOTBACKUP */
/** The file format to use on new *.ibd files. */ /** The file format to use on new *.ibd files. */
extern ulint srv_file_format; extern ulint srv_file_format;
/** Whether to check file format during startup. A value of /** Whether to check file format during startup. A value of
...@@ -145,7 +149,11 @@ extern char srv_adaptive_flushing; ...@@ -145,7 +149,11 @@ extern char srv_adaptive_flushing;
/* The sort order table of the MySQL latin1_swedish_ci character set /* The sort order table of the MySQL latin1_swedish_ci character set
collation */ collation */
extern const byte* srv_latin1_ordering; extern const byte* srv_latin1_ordering;
#ifndef UNIV_HOTBACKUP
extern my_bool srv_use_sys_malloc; extern my_bool srv_use_sys_malloc;
#else
extern ibool srv_use_sys_malloc;
#endif /* UNIV_HOTBACKUP */
extern ulint srv_buf_pool_size; /*!< requested size in bytes */ extern ulint srv_buf_pool_size; /*!< requested size in bytes */
extern ulint srv_buf_pool_old_size; /*!< previously requested size */ extern ulint srv_buf_pool_old_size; /*!< previously requested size */
extern ulint srv_buf_pool_curr_size; /*!< current size in bytes */ extern ulint srv_buf_pool_curr_size; /*!< current size in bytes */
......
...@@ -41,7 +41,9 @@ Created 9/5/1995 Heikki Tuuri ...@@ -41,7 +41,9 @@ Created 9/5/1995 Heikki Tuuri
#include "os0sync.h" #include "os0sync.h"
#include "sync0arr.h" #include "sync0arr.h"
#if defined(UNIV_DEBUG) && !defined(UNIV_HOTBACKUP)
extern my_bool timed_mutexes; extern my_bool timed_mutexes;
#endif /* UNIV_DEBUG && !UNIV_HOTBACKUP */
#ifdef HAVE_WINDOWS_ATOMICS #ifdef HAVE_WINDOWS_ATOMICS
typedef LONG lock_word_t; /*!< On Windows, InterlockedExchange operates typedef LONG lock_word_t; /*!< On Windows, InterlockedExchange operates
......
...@@ -484,11 +484,13 @@ spin_loop: ...@@ -484,11 +484,13 @@ spin_loop:
if (i == SYNC_SPIN_ROUNDS) { if (i == SYNC_SPIN_ROUNDS) {
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
mutex->count_os_yield++; mutex->count_os_yield++;
if (timed_mutexes == 1 && timer_started==0) { #ifndef UNIV_HOTBACKUP
if (timed_mutexes && timer_started == 0) {
ut_usectime(&sec, &ms); ut_usectime(&sec, &ms);
lstart_time= (ib_int64_t)sec * 1000000 + ms; lstart_time= (ib_int64_t)sec * 1000000 + ms;
timer_started = 1; timer_started = 1;
} }
#endif /* UNIV_HOTBACKUP */
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
os_thread_yield(); os_thread_yield();
} }
...@@ -583,12 +585,13 @@ spin_loop: ...@@ -583,12 +585,13 @@ spin_loop:
mutex->count_os_wait++; mutex->count_os_wait++;
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
/* !!!!! Sometimes os_wait can be called without os_thread_yield */ /* !!!!! Sometimes os_wait can be called without os_thread_yield */
#ifndef UNIV_HOTBACKUP
if (timed_mutexes == 1 && timer_started==0) { if (timed_mutexes == 1 && timer_started == 0) {
ut_usectime(&sec, &ms); ut_usectime(&sec, &ms);
lstart_time= (ib_int64_t)sec * 1000000 + ms; lstart_time= (ib_int64_t)sec * 1000000 + ms;
timer_started = 1; timer_started = 1;
} }
#endif /* UNIV_HOTBACKUP */
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
sync_array_wait_event(sync_primary_wait_array, index); sync_array_wait_event(sync_primary_wait_array, index);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment