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
9e21c7fe
Commit
9e21c7fe
authored
Nov 02, 2005
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip:
Slightly improve error handling.
parent
1d5d3f2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
btr/btr0cur.c
btr/btr0cur.c
+17
-4
No files found.
btr/btr0cur.c
View file @
9e21c7fe
...
...
@@ -2303,12 +2303,15 @@ btr_cur_del_mark_set_clust_rec(
rw_lock_x_lock
(
&
btr_search_latch
);
}
btr_rec_set_deleted_flag
(
rec
,
page_zip
,
val
);
if
(
!
btr_rec_set_deleted_flag
(
rec
,
page_zip
/* 5 bytes */
,
val
))
{
/* page_zip_alloc() said there is enough space */
ut_error
;
}
trx
=
thr_get_trx
(
thr
);
if
(
!
(
flags
&
BTR_KEEP_SYS_FLAG
))
{
row_upd_rec_sys_fields
(
rec
,
page_zip
,
row_upd_rec_sys_fields
(
rec
,
page_zip
/* 21 bytes */
,
index
,
offsets
,
trx
,
roll_ptr
);
}
...
...
@@ -2399,6 +2402,7 @@ btr_cur_parse_del_mark_set_sec_rec(
if
(
!
btr_rec_set_deleted_flag
(
rec
,
page_zip
,
val
))
{
/* page_zip overflow should have been detected
before writing MLOG_COMP_REC_SEC_DELETE_MARK */
ut_error
;
}
}
...
...
@@ -2451,7 +2455,14 @@ btr_cur_del_mark_set_sec_rec(
}
if
(
!
btr_rec_set_deleted_flag
(
rec
,
page_zip
,
val
))
{
ut_error
;
/* TODO */
/* Reorganize to try to get more modification log space. */
btr_page_reorganize
(
buf_block_get_frame
(
block
),
cursor
->
index
,
mtr
);
if
(
!
btr_rec_set_deleted_flag
(
rec
,
page_zip
,
val
))
{
/* TODO: could we do anything else than crash? */
ut_error
;
}
}
if
(
block
->
is_hashed
)
{
...
...
@@ -2474,9 +2485,11 @@ btr_cur_del_unmark_for_ibuf(
mtr_t
*
mtr
)
/* in: mtr */
{
/* We do not need to reserve btr_search_latch, as the page has just
been read to the buffer pool and there cannot be a hash index to it. */
/* The insert buffer is not used on compressed pages. */
ut_ad
(
!
buf_block_get_page_zip
(
buf_block_align
(
rec
)));
btr_rec_set_deleted_flag
(
rec
,
NULL
,
FALSE
);
btr_cur_del_mark_set_sec_rec_log
(
rec
,
FALSE
,
mtr
);
...
...
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