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
63c834e7
Commit
63c834e7
authored
Apr 20, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'merge-xtradb-5.5' into 5.5
parents
24ac546d
c9e56d5c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
27 deletions
+60
-27
storage/xtradb/buf/buf0flu.c
storage/xtradb/buf/buf0flu.c
+2
-7
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+1
-1
storage/xtradb/handler/ha_innodb.h
storage/xtradb/handler/ha_innodb.h
+23
-0
storage/xtradb/handler/handler0alter.cc
storage/xtradb/handler/handler0alter.cc
+16
-0
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+2
-2
storage/xtradb/srv/srv0srv.c
storage/xtradb/srv/srv0srv.c
+16
-17
No files found.
storage/xtradb/buf/buf0flu.c
View file @
63c834e7
/*****************************************************************************
Copyright (c) 1995, 201
1
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 201
6
, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -2214,12 +2214,7 @@ buf_flush_stat_update(void)
ib_uint64_t
lsn
;
ulint
n_flushed
;
lsn
=
log_get_lsn_nowait
();
/* log_get_lsn_nowait tries to get log_sys->mutex with
mutex_enter_nowait, if this does not succeed function
returns 0, do not use that value to update stats. */
if
(
lsn
==
0
)
{
if
(
!
log_peek_lsn
(
&
lsn
))
{
return
;
}
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
63c834e7
...
...
@@ -4440,7 +4440,7 @@ building based on the assumption that there is no concurrent
index creation/drop and DMLs that requires index lookup. All table
handle will be closed before the index creation/drop.
@return TRUE if index translation table built successfully */
static
UNIV_INTERN
ibool
innobase_build_index_translation
(
/*=============================*/
...
...
storage/xtradb/handler/ha_innodb.h
View file @
63c834e7
...
...
@@ -412,3 +412,26 @@ innobase_index_name_is_reserved(
ulint
num_of_keys
);
/*!< in: Number of indexes to
be created. */
/*******************************************************************//**
This function builds a translation table in INNOBASE_SHARE
structure for fast index location with mysql array number from its
table->key_info structure. This also provides the necessary translation
between the key order in mysql key_info and Innodb ib_table->indexes if
they are not fully matched with each other.
Note we do not have any mutex protecting the translation table
building based on the assumption that there is no concurrent
index creation/drop and DMLs that requires index lookup. All table
handle will be closed before the index creation/drop.
@return TRUE if index translation table built successfully */
UNIV_INTERN
ibool
innobase_build_index_translation
(
/*=============================*/
const
TABLE
*
table
,
/*!< in: table in MySQL data
dictionary */
dict_table_t
*
ib_table
,
/*!< in: table in Innodb data
dictionary */
INNOBASE_SHARE
*
share
);
/*!< in/out: share structure
where index translation table
will be constructed in. */
storage/xtradb/handler/handler0alter.cc
View file @
63c834e7
...
...
@@ -1083,6 +1083,22 @@ ha_innobase::final_add_index(
trx_free_for_mysql
(
trx
);
/* Rebuild index translation table now for temporary tables if we are
restoring secondary keys, as ha_innobase::open will not be called for
the next access. */
if
(
add
->
indexed_table
==
prebuilt
->
table
&&
dict_table_is_temporary
(
prebuilt
->
table
))
{
if
(
!
innobase_build_index_translation
(
add_arg
->
table
,
prebuilt
->
table
,
share
))
{
/* We don't know whether index translation build failed
because of DD mismatch or OOM, return non-specific
error code. */
err
=
-
1
;
}
}
/* There might be work for utility threads.*/
srv_active_wake_master_thread
();
...
...
storage/xtradb/include/univ.i
View file @
63c834e7
...
...
@@ -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
37.
7
#
define
PERCONA_INNODB_VERSION
37.
8
#
endif
#
define
INNODB_VERSION_STR
"5.5.4
7
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
INNODB_VERSION_STR
"5.5.4
8
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
REFMAN
"http://dev.mysql.com/doc/refman/"
\
IB_TO_STR
(
MYSQL_MAJOR_VERSION
)
"."
\
...
...
storage/xtradb/srv/srv0srv.c
View file @
63c834e7
/*****************************************************************************
Copyright (c) 1995, 201
3
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 201
6
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 2009 Google Inc.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2013, 2014, SkySQL Ab. All Rights Reserved.
...
...
@@ -2902,6 +2902,8 @@ exit_func:
/*********************************************************************//**
A thread which prints warnings about semaphore waits which have lasted
too long. These can be used to track bugs which cause hangs.
Note: In order to make sync_arr_wake_threads_if_sema_free work as expected,
we should avoid waiting any mutexes in this function!
@return a dummy parameter */
UNIV_INTERN
os_thread_ret_t
...
...
@@ -2939,24 +2941,21 @@ loop:
/* Try to track a strange bug reported by Harald Fuchs and others,
where the lsn seems to decrease at times */
if
(
log_peek_lsn
(
&
new_lsn
))
{
if
(
new_lsn
<
old_lsn
)
{
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Error: old log sequence number %llu"
" was greater
\n
"
"InnoDB: than the new log sequence number %llu!
\n
"
"InnoDB: Please submit a bug report"
" to http://bugs.mysql.com
\n
"
,
old_lsn
,
new_lsn
);
ut_ad
(
0
);
}
/* We have to use nowait to ensure we don't block */
new_lsn
=
log_get_lsn_nowait
();
if
(
new_lsn
&&
new_lsn
<
old_lsn
)
{
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Error: old log sequence number %llu"
" was greater
\n
"
"InnoDB: than the new log sequence number %llu!
\n
"
"InnoDB: Please submit a bug report"
" to http://bugs.mysql.com
\n
"
,
old_lsn
,
new_lsn
);
ut_ad
(
0
);
}
if
(
new_lsn
)
old_lsn
=
new_lsn
;
}
if
(
difftime
(
time
(
NULL
),
srv_last_monitor_time
)
>
60
)
{
/* We referesh InnoDB Monitor values so that averages are
...
...
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