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
ec1ed62c
Commit
ec1ed62c
authored
Jan 15, 2009
by
Vadim Tkachenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync rev31 extensions
parent
2387a1ca
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
0 deletions
+16
-0
buf/buf0buddy.c
buf/buf0buddy.c
+7
-0
buf/buf0rea.c
buf/buf0rea.c
+1
-0
include/buf0buf.ic
include/buf0buf.ic
+2
-0
include/mtr0log.ic
include/mtr0log.ic
+2
-0
include/row0upd.ic
include/row0upd.ic
+2
-0
mtr/mtr0mtr.c
mtr/mtr0mtr.c
+2
-0
No files found.
buf/buf0buddy.c
View file @
ec1ed62c
...
@@ -530,11 +530,18 @@ buf_buddy_relocate(
...
@@ -530,11 +530,18 @@ buf_buddy_relocate(
/* This must be a buf_page_t object. */
/* This must be a buf_page_t object. */
UNIV_MEM_ASSERT_RW
(
src
,
size
);
UNIV_MEM_ASSERT_RW
(
src
,
size
);
if
(
have_page_hash_mutex
)
mutex_exit
(
&
page_hash_mutex
);
mutex_exit
(
&
zip_free_mutex
);
mutex_exit
(
&
zip_free_mutex
);
if
(
buf_buddy_relocate_block
(
src
,
dst
))
{
if
(
buf_buddy_relocate_block
(
src
,
dst
))
{
goto
success
;
goto
success
;
}
}
if
(
have_page_hash_mutex
)
mutex_enter
(
&
page_hash_mutex
);
mutex_enter
(
&
zip_free_mutex
);
mutex_enter
(
&
zip_free_mutex
);
}
}
...
...
buf/buf0rea.c
View file @
ec1ed62c
...
@@ -20,6 +20,7 @@ Created 11/5/1995 Heikki Tuuri
...
@@ -20,6 +20,7 @@ Created 11/5/1995 Heikki Tuuri
#include "os0file.h"
#include "os0file.h"
#include "srv0start.h"
#include "srv0start.h"
extern
ulint
srv_read_ahead
;
extern
ulint
srv_read_ahead_rnd
;
extern
ulint
srv_read_ahead_rnd
;
extern
ulint
srv_read_ahead_seq
;
extern
ulint
srv_read_ahead_seq
;
extern
ulint
srv_buf_pool_reads
;
extern
ulint
srv_buf_pool_reads
;
...
...
include/buf0buf.ic
View file @
ec1ed62c
...
@@ -664,8 +664,10 @@ buf_frame_get_page_zip(
...
@@ -664,8 +664,10 @@ buf_frame_get_page_zip(
{
{
const page_zip_des_t* page_zip;
const page_zip_des_t* page_zip;
//buf_pool_mutex_enter();
//buf_pool_mutex_enter();
mutex_enter(&page_hash_mutex);
page_zip = buf_block_get_page_zip(buf_block_align(ptr));
page_zip = buf_block_get_page_zip(buf_block_align(ptr));
//buf_pool_mutex_exit();
//buf_pool_mutex_exit();
mutex_exit(&page_hash_mutex);
return(page_zip);
return(page_zip);
}
}
#endif /* UNIV_DEBUG || UNIV_ZIP_DEBUG */
#endif /* UNIV_DEBUG || UNIV_ZIP_DEBUG */
...
...
include/mtr0log.ic
View file @
ec1ed62c
...
@@ -192,9 +192,11 @@ mlog_write_initial_log_record_fast(
...
@@ -192,9 +192,11 @@ mlog_write_initial_log_record_fast(
#ifdef UNIV_DEBUG
#ifdef UNIV_DEBUG
//buf_pool_mutex_enter();
//buf_pool_mutex_enter();
mutex_enter(&page_hash_mutex);
/* We now assume that all x-latched pages have been modified! */
/* We now assume that all x-latched pages have been modified! */
block = (buf_block_t*) buf_block_align(ptr);
block = (buf_block_t*) buf_block_align(ptr);
//buf_pool_mutex_exit();
//buf_pool_mutex_exit();
mutex_exit(&page_hash_mutex);
if (!mtr_memo_contains(mtr, block, MTR_MEMO_MODIFY)) {
if (!mtr_memo_contains(mtr, block, MTR_MEMO_MODIFY)) {
...
...
include/row0upd.ic
View file @
ec1ed62c
...
@@ -140,8 +140,10 @@ row_upd_rec_sys_fields(
...
@@ -140,8 +140,10 @@ row_upd_rec_sys_fields(
#ifdef UNIV_SYNC_DEBUG
#ifdef UNIV_SYNC_DEBUG
if (!rw_lock_own(&btr_search_latch, RW_LOCK_EX)) {
if (!rw_lock_own(&btr_search_latch, RW_LOCK_EX)) {
//buf_pool_mutex_enter();
//buf_pool_mutex_enter();
mutex_enter(&page_hash_mutex);
ut_ad(!buf_block_align(rec)->is_hashed);
ut_ad(!buf_block_align(rec)->is_hashed);
//buf_pool_mutex_exit();
//buf_pool_mutex_exit();
mutex_exit(&page_hash_mutex);
}
}
#endif /* UNIV_SYNC_DEBUG */
#endif /* UNIV_SYNC_DEBUG */
...
...
mtr/mtr0mtr.c
View file @
ec1ed62c
...
@@ -315,8 +315,10 @@ mtr_memo_contains_page(
...
@@ -315,8 +315,10 @@ mtr_memo_contains_page(
ibool
ret
;
ibool
ret
;
//buf_pool_mutex_enter();
//buf_pool_mutex_enter();
mutex_enter
(
&
page_hash_mutex
);
ret
=
mtr_memo_contains
(
mtr
,
buf_block_align
(
ptr
),
type
);
ret
=
mtr_memo_contains
(
mtr
,
buf_block_align
(
ptr
),
type
);
//buf_pool_mutex_exit();
//buf_pool_mutex_exit();
mutex_exit
(
&
page_hash_mutex
);
return
(
ret
);
return
(
ret
);
}
}
...
...
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