Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2d179fa4
Commit
2d179fa4
authored
Jul 19, 2009
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Only use my_bool when UNIV_HOTBACKUP is not defined.
parent
bcc2aa6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
include/srv0srv.h
include/srv0srv.h
+8
-0
include/sync0sync.h
include/sync0sync.h
+2
-0
sync/sync0sync.c
sync/sync0sync.c
+6
-3
No files found.
include/srv0srv.h
View file @
2d179fa4
...
...
@@ -109,7 +109,11 @@ extern char* srv_arch_dir;
/** store to its own file each table created by an user; data
dictionary tables are in the system tablespace 0 */
#ifndef UNIV_HOTBACKUP
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. */
extern
ulint
srv_file_format
;
/** Whether to check file format during startup. A value of
...
...
@@ -145,7 +149,11 @@ extern char srv_adaptive_flushing;
/* The sort order table of the MySQL latin1_swedish_ci character set
collation */
extern
const
byte
*
srv_latin1_ordering
;
#ifndef UNIV_HOTBACKUP
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_old_size
;
/*!< previously requested size */
extern
ulint
srv_buf_pool_curr_size
;
/*!< current size in bytes */
...
...
include/sync0sync.h
View file @
2d179fa4
...
...
@@ -41,7 +41,9 @@ Created 9/5/1995 Heikki Tuuri
#include "os0sync.h"
#include "sync0arr.h"
#if defined(UNIV_DEBUG) && !defined(UNIV_HOTBACKUP)
extern
my_bool
timed_mutexes
;
#endif
/* UNIV_DEBUG && !UNIV_HOTBACKUP */
#ifdef HAVE_WINDOWS_ATOMICS
typedef
LONG
lock_word_t
;
/*!< On Windows, InterlockedExchange operates
...
...
sync/sync0sync.c
View file @
2d179fa4
...
...
@@ -484,11 +484,13 @@ mutex_spin_wait(
if
(
i
==
SYNC_SPIN_ROUNDS
)
{
#ifdef UNIV_DEBUG
mutex
->
count_os_yield
++
;
if
(
timed_mutexes
==
1
&&
timer_started
==
0
)
{
#ifndef UNIV_HOTBACKUP
if
(
timed_mutexes
&&
timer_started
==
0
)
{
ut_usectime
(
&
sec
,
&
ms
);
lstart_time
=
(
ib_int64_t
)
sec
*
1000000
+
ms
;
timer_started
=
1
;
}
#endif
/* UNIV_HOTBACKUP */
#endif
/* UNIV_DEBUG */
os_thread_yield
();
}
...
...
@@ -583,12 +585,13 @@ mutex_spin_wait(
mutex
->
count_os_wait
++
;
#ifdef UNIV_DEBUG
/* !!!!! Sometimes os_wait can be called without os_thread_yield */
if
(
timed_mutexes
==
1
&&
timer_started
==
0
)
{
#ifndef UNIV_HOTBACKUP
if
(
timed_mutexes
==
1
&&
timer_started
==
0
)
{
ut_usectime
(
&
sec
,
&
ms
);
lstart_time
=
(
ib_int64_t
)
sec
*
1000000
+
ms
;
timer_started
=
1
;
}
#endif
/* UNIV_HOTBACKUP */
#endif
/* UNIV_DEBUG */
sync_array_wait_event
(
sync_primary_wait_array
,
index
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment