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
1924594b
Commit
1924594b
authored
Mar 27, 2018
by
Marko Mäkelä
Committed by
Sergei Golubchik
Mar 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor (mainly non-functional) cleanup
parent
b1818dcc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
30 deletions
+14
-30
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+6
-15
storage/innobase/lock/lock0lock.cc
storage/innobase/lock/lock0lock.cc
+8
-15
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
1924594b
...
...
@@ -8033,29 +8033,20 @@ ha_innobase::write_row(
DBUG_ENTER
(
"ha_innobase::write_row"
);
trx_t
*
trx
=
thd_to_trx
(
m_user_thd
);
ins_mode_t
vers_set_fields
;
/* Validation checks before we commence write_row operation. */
if
(
high_level_read_only
)
{
ib_senderrf
(
ha_thd
(),
IB_LOG_LEVEL_WARN
,
ER_READ_ONLY_MODE
);
DBUG_RETURN
(
HA_ERR_TABLE_READONLY
);
}
else
if
(
m_prebuilt
->
trx
!=
trx
)
{
ib
::
error
()
<<
"The transaction object for the table handle is"
" at "
<<
static_cast
<
const
void
*>
(
m_prebuilt
->
trx
)
<<
", but for the current thread it is at "
<<
static_cast
<
const
void
*>
(
trx
);
fputs
(
"InnoDB: Dump of 200 bytes around m_prebuilt: "
,
stderr
);
ut_print_buf
(
stderr
,
((
const
byte
*
)
m_prebuilt
)
-
100
,
200
);
fputs
(
"
\n
InnoDB: Dump of 200 bytes around ha_data: "
,
stderr
);
ut_print_buf
(
stderr
,
((
const
byte
*
)
trx
)
-
100
,
200
);
putc
(
'\n'
,
stderr
);
ut_error
;
}
else
if
(
!
trx_is_started
(
trx
))
{
}
ut_a
(
m_prebuilt
->
trx
==
trx
);
if
(
!
trx_is_started
(
trx
))
{
++
trx
->
will_lock
;
}
ins_mode_t
vers_set_fields
;
/* Handling of Auto-Increment Columns. */
if
(
table
->
next_number_field
&&
record
==
table
->
record
[
0
])
{
...
...
storage/innobase/lock/lock0lock.cc
View file @
1924594b
...
...
@@ -1720,7 +1720,7 @@ lock_rec_enqueue_waiting(
trx_t
*
trx
=
thr_get_trx
(
thr
);
if
(
trx
->
mysql_thd
&&
thd_lock_wait_timeout
(
trx
->
mysql_thd
)
==
0
)
{
//
trx->error_state = DB_LOCK_WAIT_TIMEOUT;
trx
->
error_state
=
DB_LOCK_WAIT_TIMEOUT
;
return
DB_LOCK_WAIT_TIMEOUT
;
}
...
...
@@ -3119,19 +3119,15 @@ lock_update_merge_right(
lock_rec_reset_and_release_wait_low
(
lock_sys
.
rec_hash
,
left_block
,
PAGE_HEAP_NO_SUPREMUM
);
#ifdef UNIV_DEBUG
/* there should exist no page lock on the left page,
otherwise, it will be blocked from merge */
ulint
space
=
left_block
->
page
.
id
.
space
();
ulint
page_no
=
left_block
->
page
.
id
.
page_no
();
ut_ad
(
lock_rec_get_first_on_page_addr
(
lock_sys
.
prdt_page_hash
,
space
,
page_no
)
==
NULL
);
#endif
/* UNIV_DEBUG */
ut_ad
(
!
lock_rec_get_first_on_page_addr
(
lock_sys
.
prdt_page_hash
,
left_block
->
page
.
id
.
space
(),
left_block
->
page
.
id
.
page_no
()));
lock_rec_free_all_from_discard_page
(
left_block
);
lock_mutex_exit
();
}
/*************************************************************//**
...
...
@@ -3244,15 +3240,12 @@ lock_update_merge_left(
lock_rec_move
(
left_block
,
right_block
,
PAGE_HEAP_NO_SUPREMUM
,
PAGE_HEAP_NO_SUPREMUM
);
#ifdef UNIV_DEBUG
/* there should exist no page lock on the right page,
otherwise, it will be blocked from merge */
ulint
space
=
right_block
->
page
.
id
.
space
();
ulint
page_no
=
right_block
->
page
.
id
.
page_no
();
lock_t
*
lock_test
=
lock_rec_get_first_on_page_addr
(
lock_sys
.
prdt_page_hash
,
space
,
page_no
);
ut_ad
(
!
lock_test
);
#endif
/* UNIV_DEBUG */
ut_ad
(
!
lock_rec_get_first_on_page_addr
(
lock_sys
.
prdt_page_hash
,
right_block
->
page
.
id
.
space
(),
right_block
->
page
.
id
.
page_no
()));
lock_rec_free_all_from_discard_page
(
right_block
);
...
...
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