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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
69988777
Commit
69988777
authored
Jun 07, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved tc_log_page_waits outside HAVE_MMAP,
because it's used also outside.
parent
fb53b789
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sql/log.cc
sql/log.cc
+7
-3
No files found.
sql/log.cc
View file @
69988777
...
@@ -2370,7 +2370,7 @@ void sql_print_information(const char *format, ...)
...
@@ -2370,7 +2370,7 @@ void sql_print_information(const char *format, ...)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
#ifdef HAVE_MMAP
/********* transaction coordinator log for 2pc - mmap() based solution *******/
/********* transaction coordinator log for 2pc - mmap() based solution *******/
/*
/*
...
@@ -2408,13 +2408,17 @@ void sql_print_information(const char *format, ...)
...
@@ -2408,13 +2408,17 @@ void sql_print_information(const char *format, ...)
new xid is added into it. Removing a xid from a page does not make it
new xid is added into it. Removing a xid from a page does not make it
dirty - we don't sync removals to disk.
dirty - we don't sync removals to disk.
*/
*/
ulong
tc_log_page_waits
=
0
;
#ifdef HAVE_MMAP
#define TC_LOG_HEADER_SIZE (sizeof(tc_log_magic)+1)
#define TC_LOG_HEADER_SIZE (sizeof(tc_log_magic)+1)
static
const
char
tc_log_magic
[]
=
{(
char
)
254
,
0x23
,
0x05
,
0x74
};
static
const
char
tc_log_magic
[]
=
{(
char
)
254
,
0x23
,
0x05
,
0x74
};
ulong
opt_tc_log_size
=
TC_LOG_MIN_SIZE
;
ulong
opt_tc_log_size
=
TC_LOG_MIN_SIZE
;
ulong
tc_log_max_pages_used
=
0
,
tc_log_page_size
=
0
,
ulong
tc_log_max_pages_used
=
0
,
tc_log_page_size
=
0
,
tc_log_cur_pages_used
=
0
;
tc_log_page_waits
=
0
,
tc_log_cur_pages_used
=
0
;
int
TC_LOG_MMAP
::
open
(
const
char
*
opt_name
)
int
TC_LOG_MMAP
::
open
(
const
char
*
opt_name
)
{
{
...
...
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