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
1b0c81c9
Commit
1b0c81c9
authored
Aug 01, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.5.44-37.3
parent
750aa8b0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
24 deletions
+39
-24
storage/xtradb/buf/buf0buf.c
storage/xtradb/buf/buf0buf.c
+5
-1
storage/xtradb/dict/dict0dict.c
storage/xtradb/dict/dict0dict.c
+3
-3
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+22
-12
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+1
-1
storage/xtradb/srv/srv0start.c
storage/xtradb/srv/srv0start.c
+2
-2
storage/xtradb/sync/sync0arr.c
storage/xtradb/sync/sync0arr.c
+4
-3
storage/xtradb/trx/trx0trx.c
storage/xtradb/trx/trx0trx.c
+2
-2
No files found.
storage/xtradb/buf/buf0buf.c
View file @
1b0c81c9
/*****************************************************************************
Copyright (c) 1995, 201
4
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 201
5
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
...
...
@@ -1666,6 +1666,10 @@ buf_pool_watch_set(
/* buf_pool->watch is protected by zip_mutex for now */
mutex_enter
(
&
buf_pool
->
zip_mutex
);
/* The maximum number of purge threads should never exceed
BUF_POOL_WATCH_SIZE. So there is no way for purge thread
instance to hold a watch when setting another watch. */
for
(
i
=
0
;
i
<
BUF_POOL_WATCH_SIZE
;
i
++
)
{
bpage
=
&
buf_pool
->
watch
[
i
];
...
...
storage/xtradb/dict/dict0dict.c
View file @
1b0c81c9
/*****************************************************************************
Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1996, 201
5
, 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
...
...
@@ -2664,7 +2664,7 @@ dict_foreign_remove_from_cache(
rbt
=
foreign
->
referenced_table
->
referenced_rbt
;
if
(
rbt
!=
NULL
)
{
if
(
rbt
!=
NULL
&&
foreign
->
id
!=
NULL
)
{
const
ib_rbt_node_t
*
node
=
rbt_lookup
(
rbt
,
foreign
->
id
);
dict_foreign_t
*
val
=
*
(
dict_foreign_t
**
)
node
->
value
;
...
...
@@ -2683,7 +2683,7 @@ dict_foreign_remove_from_cache(
foreign
);
rbt
=
foreign
->
foreign_table
->
foreign_rbt
;
if
(
rbt
!=
NULL
)
{
if
(
rbt
!=
NULL
&&
foreign
->
id
!=
NULL
)
{
const
ib_rbt_node_t
*
node
=
rbt_lookup
(
rbt
,
foreign
->
id
);
dict_foreign_t
*
val
=
*
(
dict_foreign_t
**
)
node
->
value
;
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
1b0c81c9
/*****************************************************************************
Copyright (c) 2000, 201
4
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2000, 201
5
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, 2009 Google Inc.
Copyright (c) 2009, Percona Inc.
...
...
@@ -8934,6 +8934,13 @@ ha_innobase::estimate_rows_upper_bound(void)
estimate
=
2
*
local_data_file_length
/
dict_index_calc_min_rec_len
(
index
);
/* Set num_rows less than MERGEBUFF to simulate the case where we do
not have enough space to merge the externally sorted file blocks. */
DBUG_EXECUTE_IF
(
"set_num_rows_lt_MERGEBUFF"
,
estimate
=
2
;
DBUG_SET
(
"-d,set_num_rows_lt_MERGEBUFF"
);
);
prebuilt
->
trx
->
op_info
=
(
char
*
)
""
;
DBUG_RETURN
((
ha_rows
)
estimate
);
...
...
@@ -9218,17 +9225,6 @@ ha_innobase::info_low(
prebuilt
->
trx
->
op_info
=
"returning various info to MySQL"
;
}
my_snprintf
(
path
,
sizeof
(
path
),
"%s/%s%s"
,
mysql_data_home
,
ib_table
->
name
,
reg_ext
);
unpack_filename
(
path
,
path
);
/* Note that we do not know the access time of the table,
nor the CHECK TABLE time, nor the UPDATE or INSERT time. */
if
(
os_file_get_status
(
path
,
&
stat_info
))
{
stats
.
create_time
=
(
ulong
)
stat_info
.
ctime
;
}
}
if
(
flag
&
HA_STATUS_VARIABLE
)
{
...
...
@@ -9425,6 +9421,20 @@ ha_innobase::info_low(
}
dict_table_stats_unlock
(
ib_table
,
RW_S_LATCH
);
my_snprintf
(
path
,
sizeof
(
path
),
"%s/%s%s"
,
mysql_data_home
,
table
->
s
->
normalized_path
.
str
,
reg_ext
);
unpack_filename
(
path
,
path
);
/* Note that we do not know the access time of the table,
nor the CHECK TABLE time, nor the UPDATE or INSERT time. */
if
(
os_file_get_status
(
path
,
&
stat_info
))
{
stats
.
create_time
=
(
ulong
)
stat_info
.
ctime
;
}
}
if
(
srv_force_recovery
>=
SRV_FORCE_NO_IBUF_MERGE
)
{
...
...
storage/xtradb/include/univ.i
View file @
1b0c81c9
...
...
@@ -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
37.
2
#
define
PERCONA_INNODB_VERSION
37.
3
#
endif
#
define
INNODB_VERSION_STR
MYSQL_SERVER_VERSION
...
...
storage/xtradb/srv/srv0start.c
View file @
1b0c81c9
/*****************************************************************************
Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1996, 201
5
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2008, Google Inc.
Copyright (c) 2009, Percona Inc.
...
...
@@ -2466,9 +2466,9 @@ innobase_shutdown_for_mysql(void)
ibuf_close
();
log_shutdown
();
lock_sys_close
();
trx_sys_file_format_close
();
trx_sys_close
();
lock_sys_close
();
mutex_free
(
&
srv_monitor_file_mutex
);
mutex_free
(
&
srv_dict_tmpfile_mutex
);
...
...
storage/xtradb/sync/sync0arr.c
View file @
1b0c81c9
/*****************************************************************************
Copyright (c) 1995, 201
1
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 201
5
, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
...
...
@@ -1025,8 +1025,9 @@ sync_array_output_info(
ulint
i
;
fprintf
(
file
,
"OS WAIT ARRAY INFO: reservation count %ld, signal count %ld
\n
"
,
(
long
)
arr
->
res_count
,
(
long
)
arr
->
sg_count
);
"OS WAIT ARRAY INFO: reservation count "
ULINTPF
", signal count "
ULINTPF
"
\n
"
,
arr
->
res_count
,
arr
->
sg_count
);
i
=
0
;
count
=
0
;
...
...
storage/xtradb/trx/trx0trx.c
View file @
1b0c81c9
...
...
@@ -769,9 +769,9 @@ trx_lists_init_at_db_start(void)
" anyway.
\n
"
);
trx
->
state
=
TRX_ACTIVE
;
trx_reserve_descriptor
(
trx
);
}
trx_reserve_descriptor
(
trx
);
}
else
{
trx
->
state
=
TRX_COMMITTED_IN_MEMORY
;
...
...
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