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
8766f62c
Commit
8766f62c
authored
Mar 11, 2010
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Add ut_ad(mtr->state == MTR_ACTIVE) to various places.
parent
ed1c90fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
btr/btr0pcur.c
btr/btr0pcur.c
+3
-0
buf/buf0buf.c
buf/buf0buf.c
+9
-1
include/mtr0mtr.ic
include/mtr0mtr.ic
+3
-0
No files found.
btr/btr0pcur.c
View file @
8766f62c
...
...
@@ -219,6 +219,9 @@ btr_pcur_restore_position_func(
ulint
old_mode
;
mem_heap_t
*
heap
;
ut_ad
(
mtr
);
ut_ad
(
mtr
->
state
==
MTR_ACTIVE
);
index
=
btr_cur_get_index
(
btr_pcur_get_btr_cur
(
cursor
));
if
(
UNIV_UNLIKELY
(
cursor
->
old_stored
!=
BTR_PCUR_OLD_STORED
)
...
...
buf/buf0buf.c
View file @
8766f62c
...
...
@@ -2041,6 +2041,7 @@ buf_page_get_gen(
ulint
retries
=
0
;
ut_ad
(
mtr
);
ut_ad
(
mtr
->
state
==
MTR_ACTIVE
);
ut_ad
((
rw_latch
==
RW_S_LATCH
)
||
(
rw_latch
==
RW_X_LATCH
)
||
(
rw_latch
==
RW_NO_LATCH
));
...
...
@@ -2397,7 +2398,9 @@ buf_page_optimistic_get(
ibool
success
;
ulint
fix_type
;
ut_ad
(
mtr
&&
block
);
ut_ad
(
block
);
ut_ad
(
mtr
);
ut_ad
(
mtr
->
state
==
MTR_ACTIVE
);
ut_ad
((
rw_latch
==
RW_S_LATCH
)
||
(
rw_latch
==
RW_X_LATCH
));
mutex_enter
(
&
block
->
mutex
);
...
...
@@ -2509,6 +2512,7 @@ buf_page_get_known_nowait(
ulint
fix_type
;
ut_ad
(
mtr
);
ut_ad
(
mtr
->
state
==
MTR_ACTIVE
);
ut_ad
((
rw_latch
==
RW_S_LATCH
)
||
(
rw_latch
==
RW_X_LATCH
));
mutex_enter
(
&
block
->
mutex
);
...
...
@@ -2608,6 +2612,9 @@ buf_page_try_get_func(
ibool
success
;
ulint
fix_type
;
ut_ad
(
mtr
);
ut_ad
(
mtr
->
state
==
MTR_ACTIVE
);
buf_pool_mutex_enter
();
block
=
buf_block_hash_get
(
space_id
,
page_no
);
...
...
@@ -2981,6 +2988,7 @@ buf_page_create(
ulint
time_ms
=
ut_time_ms
();
ut_ad
(
mtr
);
ut_ad
(
mtr
->
state
==
MTR_ACTIVE
);
ut_ad
(
space
||
!
zip_size
);
free_block
=
buf_LRU_get_free_block
(
0
);
...
...
include/mtr0mtr.ic
View file @
8766f62c
...
...
@@ -70,6 +70,7 @@ mtr_memo_push(
ut_ad(type <= MTR_MEMO_X_LOCK);
ut_ad(mtr);
ut_ad(mtr->magic_n == MTR_MAGIC_N);
ut_ad(mtr->state == MTR_ACTIVE);
memo = &(mtr->memo);
...
...
@@ -92,6 +93,7 @@ mtr_set_savepoint(
ut_ad(mtr);
ut_ad(mtr->magic_n == MTR_MAGIC_N);
ut_ad(mtr->state == MTR_ACTIVE);
memo = &(mtr->memo);
...
...
@@ -149,6 +151,7 @@ mtr_memo_contains(
ut_ad(mtr);
ut_ad(mtr->magic_n == MTR_MAGIC_N);
ut_ad(mtr->state == MTR_ACTIVE);
memo = &(mtr->memo);
...
...
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