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
959f7415
Commit
959f7415
authored
Jan 28, 2019
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'merge-xtradb-5.6' into 10.0
parents
c2197e0c
3262afc6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
14 deletions
+41
-14
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+1
-1
storage/xtradb/log/log0online.cc
storage/xtradb/log/log0online.cc
+40
-1
storage/xtradb/row/row0mysql.cc
storage/xtradb/row/row0mysql.cc
+0
-12
No files found.
storage/xtradb/include/univ.i
View file @
959f7415
...
...
@@ -48,7 +48,7 @@ Created 1/20/1994 Heikki Tuuri
#
define
INNODB_VERSION_BUGFIX
39
#
ifndef
PERCONA_INNODB_VERSION
#
define
PERCONA_INNODB_VERSION
84.
1
#
define
PERCONA_INNODB_VERSION
84.
2
#
endif
/* Enable UNIV_LOG_ARCHIVE in XtraDB */
...
...
storage/xtradb/log/log0online.cc
View file @
959f7415
...
...
@@ -1873,6 +1873,8 @@ log_online_purge_changed_page_bitmaps(
for
(
i
=
0
;
i
<
bitmap_files
.
count
;
i
++
)
{
char
full_bmp_file_name
[
2
*
FN_REFLEN
+
2
];
/* We consider the end LSN of the current bitmap, derived from
the start LSN of the subsequent bitmap file, to determine
whether to remove the current bitmap. Note that bitmap_files
...
...
@@ -1888,8 +1890,45 @@ log_online_purge_changed_page_bitmaps(
break
;
}
/* In some non-trivial cases the sequence of .xdb files may
have gaps. For instance:
ib_modified_log_1_0.xdb
ib_modified_log_2_<mmm>.xdb
ib_modified_log_4_<nnn>.xdb
Adding this check as a safety precaution. */
if
(
bitmap_files
.
files
[
i
].
name
[
0
]
==
'\0'
)
continue
;
/* If redo log tracking is enabled, reuse 'bmp_file_home'
from 'log_bmp_sys'. Otherwise, compose the full '.xdb' file
path from 'srv_data_home', adding a path separator if
necessary. */
if
(
log_bmp_sys
!=
NULL
)
{
ut_snprintf
(
full_bmp_file_name
,
sizeof
(
full_bmp_file_name
),
"%s%s"
,
log_bmp_sys
->
bmp_file_home
,
bitmap_files
.
files
[
i
].
name
);
}
else
{
char
separator
[
2
]
=
{
0
,
0
};
const
size_t
srv_data_home_len
=
strlen
(
srv_data_home
);
ut_a
(
srv_data_home_len
<
FN_REFLEN
);
if
(
srv_data_home_len
!=
0
&&
srv_data_home
[
srv_data_home_len
-
1
]
!=
SRV_PATH_SEPARATOR
)
{
separator
[
0
]
=
SRV_PATH_SEPARATOR
;
}
ut_snprintf
(
full_bmp_file_name
,
sizeof
(
full_bmp_file_name
),
"%s%s%s"
,
srv_data_home
,
separator
,
bitmap_files
.
files
[
i
].
name
);
}
if
(
!
os_file_delete_if_exists
(
innodb_file_bmp_key
,
bitmap_files
.
files
[
i
].
name
))
{
full_bmp_file_
name
))
{
os_file_get_last_error
(
TRUE
);
result
=
TRUE
;
...
...
storage/xtradb/row/row0mysql.cc
View file @
959f7415
...
...
@@ -4996,18 +4996,6 @@ row_rename_table_for_mysql(
goto
funct_exit
;
}
/* Wait for background fts sync to finish */
for
(
retry
=
1
;
dict_fts_index_syncing
(
table
);
++
retry
)
{
DICT_BG_YIELD
(
trx
);
if
(
retry
%
100
==
0
)
{
ib_logf
(
IB_LOG_LEVEL_INFO
,
"Unable to rename table %s to new name"
" %s because FTS sync is running on table."
" Retrying
\n
"
,
old_name
,
new_name
);
}
}
/* We use the private SQL parser of Innobase to generate the query
graphs needed in updating the dictionary data from system tables. */
...
...
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