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
7e6d4bba
Commit
7e6d4bba
authored
Oct 08, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
XtraDB 5.5.40-36.1
parents
63ca157c
ef7d950e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
storage/xtradb/buf/buf0buf.c
storage/xtradb/buf/buf0buf.c
+1
-0
storage/xtradb/dict/dict0dict.c
storage/xtradb/dict/dict0dict.c
+15
-0
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+2
-2
storage/xtradb/row/row0ins.c
storage/xtradb/row/row0ins.c
+1
-11
No files found.
storage/xtradb/buf/buf0buf.c
View file @
7e6d4bba
...
...
@@ -4028,6 +4028,7 @@ corrupt:
" because of"
" a corrupt database page.
\n
"
,
stderr
);
ut_error
;
}
}
...
...
storage/xtradb/dict/dict0dict.c
View file @
7e6d4bba
...
...
@@ -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
);
...
...
storage/xtradb/include/univ.i
View file @
7e6d4bba
...
...
@@ -64,10 +64,10 @@ 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
"5.5.
39
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
INNODB_VERSION_STR
"5.5.
40
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
REFMAN
"http://dev.mysql.com/doc/refman/"
\
IB_TO_STR
(
MYSQL_MAJOR_VERSION
)
"."
\
...
...
storage/xtradb/row/row0ins.c
View file @
7e6d4bba
...
...
@@ -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