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
17842af3
Commit
17842af3
authored
Nov 28, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Allow the code to compile with debugging enabled. This
was broken in r1066.
parent
8e77f38e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
buf/buf0buf.c
buf/buf0buf.c
+3
-2
buf/buf0flu.c
buf/buf0flu.c
+1
-1
include/buf0buf.h
include/buf0buf.h
+2
-2
include/buf0buf.ic
include/buf0buf.ic
+1
-0
include/buf0flu.ic
include/buf0flu.ic
+1
-1
No files found.
buf/buf0buf.c
View file @
17842af3
...
@@ -2405,7 +2405,8 @@ buf_validate(void)
...
@@ -2405,7 +2405,8 @@ buf_validate(void)
#endif
#endif
if
(
block
->
io_fix
==
BUF_IO_WRITE
)
{
if
(
block
->
io_fix
==
BUF_IO_WRITE
)
{
switch
(
block
->
flush_type
)
{
switch
(
buf_page_get_flush_type
(
&
block
->
page
))
{
case
BUF_FLUSH_LRU
:
case
BUF_FLUSH_LRU
:
n_lru_flush
++
;
n_lru_flush
++
;
ut_a
(
rw_lock_is_locked
(
ut_a
(
rw_lock_is_locked
(
...
@@ -2430,7 +2431,7 @@ buf_validate(void)
...
@@ -2430,7 +2431,7 @@ buf_validate(void)
n_lru
++
;
n_lru
++
;
if
(
block
->
oldest_modification
>
0
)
{
if
(
block
->
page
.
oldest_modification
>
0
)
{
n_flush
++
;
n_flush
++
;
}
}
...
...
buf/buf0flu.c
View file @
17842af3
...
@@ -191,7 +191,7 @@ buf_flush_write_complete(
...
@@ -191,7 +191,7 @@ buf_flush_write_complete(
UT_LIST_REMOVE
(
flush_list
,
buf_pool
->
flush_list
,
&
(
block
->
page
));
UT_LIST_REMOVE
(
flush_list
,
buf_pool
->
flush_list
,
&
(
block
->
page
));
ut_d
(
UT_LIST_VALIDATE
(
flush_list
,
buf_
block
_t
,
buf_pool
->
flush_list
));
ut_d
(
UT_LIST_VALIDATE
(
flush_list
,
buf_
page
_t
,
buf_pool
->
flush_list
));
flush_type
=
buf_page_get_flush_type
(
&
block
->
page
);
flush_type
=
buf_page_get_flush_type
(
&
block
->
page
);
buf_pool
->
n_flush
[
flush_type
]
--
;
buf_pool
->
n_flush
[
flush_type
]
--
;
...
...
include/buf0buf.h
View file @
17842af3
...
@@ -1002,8 +1002,8 @@ MEMORY: is not in free list, LRU list, or flush list, nor page
...
@@ -1002,8 +1002,8 @@ MEMORY: is not in free list, LRU list, or flush list, nor page
hash table
hash table
FILE_PAGE: space and offset are defined, is in page hash table
FILE_PAGE: space and offset are defined, is in page hash table
if io_fix == BUF_IO_WRITE,
if io_fix == BUF_IO_WRITE,
pool: no_flush[
block->
flush_type] is in reset state,
pool: no_flush[flush_type] is in reset state,
pool: n_flush[
block->
flush_type] > 0
pool: n_flush[flush_type] > 0
(1) if buf_fix_count == 0, then
(1) if buf_fix_count == 0, then
is in LRU list, not in free list
is in LRU list, not in free list
...
...
include/buf0buf.ic
View file @
17842af3
...
@@ -179,6 +179,7 @@ buf_page_get_flush_type(
...
@@ -179,6 +179,7 @@ buf_page_get_flush_type(
case BUF_FLUSH_LIST:
case BUF_FLUSH_LIST:
return(flush_type);
return(flush_type);
case BUF_FLUSH_N_TYPES:
case BUF_FLUSH_N_TYPES:
break;
}
}
ut_error;
ut_error;
#endif /* UNIV_DEBUG */
#endif /* UNIV_DEBUG */
...
...
include/buf0flu.ic
View file @
17842af3
...
@@ -47,7 +47,7 @@ buf_flush_note_modification(
...
@@ -47,7 +47,7 @@ buf_flush_note_modification(
ut_ad(mtr->start_lsn != 0);
ut_ad(mtr->start_lsn != 0);
ut_ad(mtr->modifications);
ut_ad(mtr->modifications);
ut_ad(block->newest_modification <= mtr->end_lsn);
ut_ad(block->
page.
newest_modification <= mtr->end_lsn);
block->page.newest_modification = mtr->end_lsn;
block->page.newest_modification = mtr->end_lsn;
...
...
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