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
67448e02
Commit
67448e02
authored
Mar 26, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into zim.(none):/home/brian/mysql/dep-5.1
parents
919d0d85
56e8814b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-1
sql/handler.cc
sql/handler.cc
+17
-3
sql/handler.h
sql/handler.h
+1
-0
No files found.
sql/ha_innodb.cc
View file @
67448e02
...
...
@@ -237,7 +237,8 @@ handlerton innobase_hton = {
NULL
,
/* Fill FILES table */
HTON_NO_FLAGS
,
NULL
,
/* binlog_func */
NULL
/* binlog_log_query */
NULL
,
/* binlog_log_query */
innobase_release_temporary_latches
};
...
...
sql/handler.cc
View file @
67448e02
...
...
@@ -1179,11 +1179,23 @@ bool mysql_xa_recover(THD *thd)
return value: always 0
*/
static
my_bool
release_temporary_latches
(
THD
*
thd
,
st_plugin_int
*
plugin
,
void
*
unused
)
{
handlerton
*
hton
=
(
handlerton
*
)
plugin
->
plugin
->
info
;
if
(
hton
->
state
==
SHOW_OPTION_YES
&&
hton
->
release_temporary_latches
)
hton
->
release_temporary_latches
(
thd
);
return
FALSE
;
}
int
ha_release_temporary_latches
(
THD
*
thd
)
{
#ifdef WITH_INNOBASE_STORAGE_ENGINE
innobase_release_temporary_latches
(
thd
);
#endif
plugin_foreach
(
thd
,
release_temporary_latches
,
MYSQL_STORAGE_ENGINE_PLUGIN
,
NULL
);
return
0
;
}
...
...
@@ -3264,6 +3276,8 @@ int handler::ha_external_lock(THD *thd, int lock_type)
case
SQLCOM_TRUNCATE
:
case
SQLCOM_ALTER_TABLE
:
DBUG_RETURN
(
0
);
default:
break
;
}
/*
...
...
sql/handler.h
View file @
67448e02
...
...
@@ -580,6 +580,7 @@ typedef struct
void
(
*
binlog_log_query
)(
THD
*
thd
,
enum_binlog_command
binlog_command
,
const
char
*
query
,
uint
query_length
,
const
char
*
db
,
const
char
*
table_name
);
int
(
*
release_temporary_latches
)(
THD
*
thd
);
}
handlerton
;
extern
const
handlerton
default_hton
;
...
...
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