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
ef00dbaa
Commit
ef00dbaa
authored
Jun 05, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postmerge changes
parent
1d2b4e48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
include/pagecache.h
include/pagecache.h
+6
-6
storage/maria/ma_blockrec.c
storage/maria/ma_blockrec.c
+3
-2
storage/maria/ma_pagecache.c
storage/maria/ma_pagecache.c
+3
-3
No files found.
include/pagecache.h
View file @
ef00dbaa
...
@@ -213,7 +213,7 @@ extern void pagecache_unlock_by_link(PAGECACHE *pagecache,
...
@@ -213,7 +213,7 @@ extern void pagecache_unlock_by_link(PAGECACHE *pagecache,
PAGECACHE_PAGE_LINK
*
link
,
PAGECACHE_PAGE_LINK
*
link
,
enum
pagecache_page_lock
lock
,
enum
pagecache_page_lock
lock
,
enum
pagecache_page_pin
pin
,
enum
pagecache_page_pin
pin
,
pgcache_page_no_t
pageno
,
LSN
first_REDO_LSN_for_page
,
LSN
lsn
);
LSN
lsn
);
extern
void
pagecache_unpin
(
PAGECACHE
*
pagecache
,
extern
void
pagecache_unpin
(
PAGECACHE
*
pagecache
,
PAGECACHE_FILE
*
file
,
PAGECACHE_FILE
*
file
,
...
@@ -225,11 +225,11 @@ extern void pagecache_unpin_by_link(PAGECACHE *pagecache,
...
@@ -225,11 +225,11 @@ extern void pagecache_unpin_by_link(PAGECACHE *pagecache,
extern
int
flush_pagecache_blocks
(
PAGECACHE
*
keycache
,
extern
int
flush_pagecache_blocks
(
PAGECACHE
*
keycache
,
PAGECACHE_FILE
*
file
,
PAGECACHE_FILE
*
file
,
enum
flush_type
type
);
enum
flush_type
type
);
extern
my_bool
pagecache_delete
_page
(
PAGECACHE
*
pagecache
,
extern
my_bool
pagecache_delete
(
PAGECACHE
*
pagecache
,
PAGECACHE_FILE
*
file
,
PAGECACHE_FILE
*
file
,
pgcache_page_no_t
pageno
,
pgcache_page_no_t
pageno
,
enum
pagecache_page_lock
lock
,
enum
pagecache_page_lock
lock
,
my_bool
flush
);
my_bool
flush
);
extern
my_bool
pagecache_delete_pages
(
PAGECACHE
*
pagecache
,
extern
my_bool
pagecache_delete_pages
(
PAGECACHE
*
pagecache
,
PAGECACHE_FILE
*
file
,
PAGECACHE_FILE
*
file
,
pgcache_page_no_t
pageno
,
pgcache_page_no_t
pageno
,
...
...
storage/maria/ma_blockrec.c
View file @
ef00dbaa
...
@@ -571,8 +571,9 @@ void _ma_unpin_all_pages(MARIA_HA *info, LSN undo_lsn)
...
@@ -571,8 +571,9 @@ void _ma_unpin_all_pages(MARIA_HA *info, LSN undo_lsn)
DBUG_ASSERT
(
undo_lsn
!=
0
||
info
->
s
->
base
.
transactional
==
0
);
DBUG_ASSERT
(
undo_lsn
!=
0
||
info
->
s
->
base
.
transactional
==
0
);
while
(
pinned_page
--
!=
page_link
)
while
(
pinned_page
--
!=
page_link
)
pagecache_unlock
(
info
->
s
->
pagecache
,
pinned_page
->
link
,
pagecache_unlock_by_link
(
info
->
s
->
pagecache
,
pinned_page
->
link
,
pinned_page
->
unlock
,
PAGECACHE_UNPIN
,
0
,
undo_lsn
);
pinned_page
->
unlock
,
PAGECACHE_UNPIN
,
0
,
undo_lsn
);
info
->
pinned_pages
.
elements
=
0
;
info
->
pinned_pages
.
elements
=
0
;
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
...
storage/maria/ma_pagecache.c
View file @
ef00dbaa
...
@@ -2258,7 +2258,7 @@ static my_bool make_lock_and_pin(PAGECACHE *pagecache,
...
@@ -2258,7 +2258,7 @@ static my_bool make_lock_and_pin(PAGECACHE *pagecache,
block
->
pins
,
block
->
pins
,
page_cache_page_lock_str
[
lock
],
page_cache_page_lock_str
[
lock
],
page_cache_page_pin_str
[
pin
]));
page_cache_page_pin_str
[
pin
]));
BLOCK_INFO
(
block
);
PC
BLOCK_INFO
(
block
);
}
}
#endif
#endif
...
@@ -3067,8 +3067,8 @@ my_bool pagecache_delete_pages(PAGECACHE *pagecache,
...
@@ -3067,8 +3067,8 @@ my_bool pagecache_delete_pages(PAGECACHE *pagecache,
page_end
=
pageno
+
page_count
;
page_end
=
pageno
+
page_count
;
do
do
{
{
if
(
pagecache_delete
_page
(
pagecache
,
file
,
pageno
,
if
(
pagecache_delete
(
pagecache
,
file
,
pageno
,
lock
,
flush
))
lock
,
flush
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
while
(
++
pageno
!=
page_end
);
}
while
(
++
pageno
!=
page_end
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
...
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