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
ef7d950e
Commit
ef7d950e
authored
Oct 07, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
percona-server-5.5.40-36.1
parent
014214d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
buf/buf0buf.c
buf/buf0buf.c
+1
-0
dict/dict0dict.c
dict/dict0dict.c
+15
-0
include/univ.i
include/univ.i
+1
-1
row/row0ins.c
row/row0ins.c
+1
-11
No files found.
buf/buf0buf.c
View file @
ef7d950e
...
...
@@ -4005,6 +4005,7 @@ corrupt:
" because of"
" a corrupt database page.
\n
"
,
stderr
);
ut_error
;
}
}
...
...
dict/dict0dict.c
View file @
ef7d950e
...
...
@@ -1130,6 +1130,11 @@ dict_table_rename_in_cache(
/* The id will be changed. So remove old one */
rbt_delete
(
foreign
->
foreign_table
->
foreign_rbt
,
foreign
->
id
);
if
(
foreign
->
referenced_table
)
{
rbt_delete
(
foreign
->
referenced_table
->
referenced_rbt
,
foreign
->
id
);
}
if
(
ut_strlen
(
foreign
->
foreign_table_name
)
<
ut_strlen
(
table
->
name
))
{
/* Allocate a longer name buffer;
...
...
@@ -1280,6 +1285,11 @@ dict_table_rename_in_cache(
rbt_insert
(
foreign
->
foreign_table
->
foreign_rbt
,
foreign
->
id
,
&
foreign
);
if
(
foreign
->
referenced_table
)
{
rbt_insert
(
foreign
->
referenced_table
->
referenced_rbt
,
foreign
->
id
,
&
foreign
);
}
foreign
=
UT_LIST_GET_NEXT
(
foreign_list
,
foreign
);
}
...
...
@@ -5910,6 +5920,11 @@ dict_find_table_by_space(
ut_ad
(
space_id
>
0
);
if
(
dict_sys
==
NULL
)
{
/* This could happen when it's in redo processing. */
return
(
NULL
);
}
table
=
UT_LIST_GET_FIRST
(
dict_sys
->
table_LRU
);
num_item
=
UT_LIST_GET_LEN
(
dict_sys
->
table_LRU
);
...
...
include/univ.i
View file @
ef7d950e
...
...
@@ -64,7 +64,7 @@ component, i.e. we show M.N.P as M.N */
(
INNODB_VERSION_MAJOR
<<
8
|
INNODB_VERSION_MINOR
)
#
ifndef
PERCONA_INNODB_VERSION
#
define
PERCONA_INNODB_VERSION
36.
0
#
define
PERCONA_INNODB_VERSION
36.
1
#
endif
#
define
INNODB_VERSION_STR
MYSQL_SERVER_VERSION
...
...
row/row0ins.c
View file @
ef7d950e
...
...
@@ -1714,7 +1714,7 @@ row_ins_scan_sec_index_for_duplicate(
do
{
const
rec_t
*
rec
=
btr_pcur_get_rec
(
&
pcur
);
const
buf_block_t
*
block
=
btr_pcur_get_block
(
&
pcur
);
ulint
lock_type
;
const
ulint
lock_type
=
LOCK_ORDINARY
;
if
(
page_rec_is_infimum
(
rec
))
{
...
...
@@ -1724,16 +1724,6 @@ row_ins_scan_sec_index_for_duplicate(
offsets
=
rec_get_offsets
(
rec
,
index
,
offsets
,
ULINT_UNDEFINED
,
&
heap
);
/* If the transaction isolation level is no stronger than
READ COMMITTED, then avoid gap locks. */
if
(
!
page_rec_is_supremum
(
rec
)
&&
thr_get_trx
(
thr
)
->
isolation_level
<=
TRX_ISO_READ_COMMITTED
)
{
lock_type
=
LOCK_REC_NOT_GAP
;
}
else
{
lock_type
=
LOCK_ORDINARY
;
}
if
(
allow_duplicates
)
{
/* If the SQL-query will update or replace
...
...
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