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
50accfee
Commit
50accfee
authored
Aug 05, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: lock_rec_validate_page(): Add the parameter zip_size.
This should help track down Mantis Issue #289.
parent
1e2f899b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lock/lock0lock.c
lock/lock0lock.c
+11
-3
No files found.
lock/lock0lock.c
View file @
50accfee
...
@@ -360,6 +360,8 @@ ibool
...
@@ -360,6 +360,8 @@ ibool
lock_rec_validate_page
(
lock_rec_validate_page
(
/*===================*/
/*===================*/
ulint
space
,
/*!< in: space id */
ulint
space
,
/*!< in: space id */
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint
page_no
);
/*!< in: page number */
ulint
page_no
);
/*!< in: page number */
/* Define the following in order to enable lock_rec_validate_page() checks. */
/* Define the following in order to enable lock_rec_validate_page() checks. */
...
@@ -2622,6 +2624,7 @@ lock_move_reorganize_page(
...
@@ -2622,6 +2624,7 @@ lock_move_reorganize_page(
#ifdef UNIV_DEBUG_LOCK_VALIDATE
#ifdef UNIV_DEBUG_LOCK_VALIDATE
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
block
),
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
block
),
buf_block_get_zip_size
(
block
),
buf_block_get_page_no
(
block
)));
buf_block_get_page_no
(
block
)));
#endif
#endif
}
}
...
@@ -2711,8 +2714,10 @@ lock_move_rec_list_end(
...
@@ -2711,8 +2714,10 @@ lock_move_rec_list_end(
#ifdef UNIV_DEBUG_LOCK_VALIDATE
#ifdef UNIV_DEBUG_LOCK_VALIDATE
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
block
),
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
block
),
buf_block_get_zip_size
(
block
),
buf_block_get_page_no
(
block
)));
buf_block_get_page_no
(
block
)));
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
new_block
),
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
new_block
),
buf_block_get_zip_size
(
block
),
buf_block_get_page_no
(
new_block
)));
buf_block_get_page_no
(
new_block
)));
#endif
#endif
}
}
...
@@ -2822,6 +2827,7 @@ lock_move_rec_list_start(
...
@@ -2822,6 +2827,7 @@ lock_move_rec_list_start(
#ifdef UNIV_DEBUG_LOCK_VALIDATE
#ifdef UNIV_DEBUG_LOCK_VALIDATE
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
block
),
ut_ad
(
lock_rec_validate_page
(
buf_block_get_space
(
block
),
buf_block_get_zip_size
(
block
),
buf_block_get_page_no
(
block
)));
buf_block_get_page_no
(
block
)));
#endif
#endif
}
}
...
@@ -4684,6 +4690,8 @@ ibool
...
@@ -4684,6 +4690,8 @@ ibool
lock_rec_validate_page
(
lock_rec_validate_page
(
/*===================*/
/*===================*/
ulint
space
,
/*!< in: space id */
ulint
space
,
/*!< in: space id */
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint
page_no
)
/*!< in: page number */
ulint
page_no
)
/*!< in: page number */
{
{
dict_index_t
*
index
;
dict_index_t
*
index
;
...
@@ -4694,7 +4702,6 @@ lock_rec_validate_page(
...
@@ -4694,7 +4702,6 @@ lock_rec_validate_page(
ulint
nth_lock
=
0
;
ulint
nth_lock
=
0
;
ulint
nth_bit
=
0
;
ulint
nth_bit
=
0
;
ulint
i
;
ulint
i
;
ulint
zip_size
;
mtr_t
mtr
;
mtr_t
mtr
;
mem_heap_t
*
heap
=
NULL
;
mem_heap_t
*
heap
=
NULL
;
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
ulint
offsets_
[
REC_OFFS_NORMAL_SIZE
];
...
@@ -4705,7 +4712,6 @@ lock_rec_validate_page(
...
@@ -4705,7 +4712,6 @@ lock_rec_validate_page(
mtr_start
(
&
mtr
);
mtr_start
(
&
mtr
);
zip_size
=
fil_space_get_zip_size
(
space
);
ut_ad
(
zip_size
!=
ULINT_UNDEFINED
);
ut_ad
(
zip_size
!=
ULINT_UNDEFINED
);
block
=
buf_page_get
(
space
,
zip_size
,
page_no
,
RW_X_LATCH
,
&
mtr
);
block
=
buf_page_get
(
space
,
zip_size
,
page_no
,
RW_X_LATCH
,
&
mtr
);
buf_block_dbg_add_level
(
block
,
SYNC_NO_ORDER_CHECK
);
buf_block_dbg_add_level
(
block
,
SYNC_NO_ORDER_CHECK
);
...
@@ -4840,7 +4846,9 @@ lock_validate(void)
...
@@ -4840,7 +4846,9 @@ lock_validate(void)
lock_mutex_exit_kernel
();
lock_mutex_exit_kernel
();
lock_rec_validate_page
(
space
,
page_no
);
lock_rec_validate_page
(
space
,
fil_space_get_zip_size
(
space
),
page_no
);
lock_mutex_enter_kernel
();
lock_mutex_enter_kernel
();
...
...
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