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
5e139437
Commit
5e139437
authored
May 16, 2019
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adiue thd_ha_data(), you've broke many hearts
Part of MDEV-19515 - Improve connect speed
parent
ec926b0f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
14 deletions
+2
-14
include/mysql/plugin.h
include/mysql/plugin.h
+0
-1
include/mysql/plugin_audit.h.pp
include/mysql/plugin_audit.h.pp
+0
-1
include/mysql/plugin_auth.h.pp
include/mysql/plugin_auth.h.pp
+0
-1
include/mysql/plugin_encryption.h.pp
include/mysql/plugin_encryption.h.pp
+0
-1
include/mysql/plugin_ftparser.h.pp
include/mysql/plugin_ftparser.h.pp
+0
-1
include/mysql/plugin_password_validation.h.pp
include/mysql/plugin_password_validation.h.pp
+0
-1
sql/sql_class.cc
sql/sql_class.cc
+2
-8
No files found.
include/mysql/plugin.h
View file @
5e139437
...
...
@@ -645,7 +645,6 @@ int thd_in_lock_tables(const MYSQL_THD thd);
int
thd_tablespace_op
(
const
MYSQL_THD
thd
);
long
long
thd_test_options
(
const
MYSQL_THD
thd
,
long
long
test_options
);
int
thd_sql_command
(
const
MYSQL_THD
thd
);
void
**
thd_ha_data
(
const
MYSQL_THD
thd
,
const
struct
handlerton
*
hton
);
void
thd_storage_lock_wait
(
MYSQL_THD
thd
,
long
long
value
);
int
thd_tx_isolation
(
const
MYSQL_THD
thd
);
int
thd_tx_is_read_only
(
const
MYSQL_THD
thd
);
...
...
include/mysql/plugin_audit.h.pp
View file @
5e139437
...
...
@@ -559,7 +559,6 @@ int thd_in_lock_tables(const void* thd);
int
thd_tablespace_op
(
const
void
*
thd
);
long
long
thd_test_options
(
const
void
*
thd
,
long
long
test_options
);
int
thd_sql_command
(
const
void
*
thd
);
void
**
thd_ha_data
(
const
void
*
thd
,
const
struct
handlerton
*
hton
);
void
thd_storage_lock_wait
(
void
*
thd
,
long
long
value
);
int
thd_tx_isolation
(
const
void
*
thd
);
int
thd_tx_is_read_only
(
const
void
*
thd
);
...
...
include/mysql/plugin_auth.h.pp
View file @
5e139437
...
...
@@ -559,7 +559,6 @@ int thd_in_lock_tables(const void* thd);
int
thd_tablespace_op
(
const
void
*
thd
);
long
long
thd_test_options
(
const
void
*
thd
,
long
long
test_options
);
int
thd_sql_command
(
const
void
*
thd
);
void
**
thd_ha_data
(
const
void
*
thd
,
const
struct
handlerton
*
hton
);
void
thd_storage_lock_wait
(
void
*
thd
,
long
long
value
);
int
thd_tx_isolation
(
const
void
*
thd
);
int
thd_tx_is_read_only
(
const
void
*
thd
);
...
...
include/mysql/plugin_encryption.h.pp
View file @
5e139437
...
...
@@ -559,7 +559,6 @@ int thd_in_lock_tables(const void* thd);
int
thd_tablespace_op
(
const
void
*
thd
);
long
long
thd_test_options
(
const
void
*
thd
,
long
long
test_options
);
int
thd_sql_command
(
const
void
*
thd
);
void
**
thd_ha_data
(
const
void
*
thd
,
const
struct
handlerton
*
hton
);
void
thd_storage_lock_wait
(
void
*
thd
,
long
long
value
);
int
thd_tx_isolation
(
const
void
*
thd
);
int
thd_tx_is_read_only
(
const
void
*
thd
);
...
...
include/mysql/plugin_ftparser.h.pp
View file @
5e139437
...
...
@@ -513,7 +513,6 @@ int thd_in_lock_tables(const void* thd);
int
thd_tablespace_op
(
const
void
*
thd
);
long
long
thd_test_options
(
const
void
*
thd
,
long
long
test_options
);
int
thd_sql_command
(
const
void
*
thd
);
void
**
thd_ha_data
(
const
void
*
thd
,
const
struct
handlerton
*
hton
);
void
thd_storage_lock_wait
(
void
*
thd
,
long
long
value
);
int
thd_tx_isolation
(
const
void
*
thd
);
int
thd_tx_is_read_only
(
const
void
*
thd
);
...
...
include/mysql/plugin_password_validation.h.pp
View file @
5e139437
...
...
@@ -559,7 +559,6 @@ int thd_in_lock_tables(const void* thd);
int
thd_tablespace_op
(
const
void
*
thd
);
long
long
thd_test_options
(
const
void
*
thd
,
long
long
test_options
);
int
thd_sql_command
(
const
void
*
thd
);
void
**
thd_ha_data
(
const
void
*
thd
,
const
struct
handlerton
*
hton
);
void
thd_storage_lock_wait
(
void
*
thd
,
long
long
value
);
int
thd_tx_isolation
(
const
void
*
thd
);
int
thd_tx_is_read_only
(
const
void
*
thd
);
...
...
sql/sql_class.cc
View file @
5e139437
...
...
@@ -419,12 +419,6 @@ void thd_exit_cond(MYSQL_THD thd, const PSI_stage_info *stage,
return
;
}
extern
"C"
void
**
thd_ha_data
(
const
THD
*
thd
,
const
struct
handlerton
*
hton
)
{
return
(
void
**
)
&
thd
->
ha_data
[
hton
->
slot
].
ha_ptr
;
}
extern
"C"
void
thd_storage_lock_wait
(
THD
*
thd
,
long
long
value
)
{
...
...
@@ -437,7 +431,7 @@ void thd_storage_lock_wait(THD *thd, long long value)
extern
"C"
void
*
thd_get_ha_data
(
const
THD
*
thd
,
const
struct
handlerton
*
hton
)
{
return
*
thd_ha_data
(
thd
,
hton
)
;
return
thd
->
ha_data
[
hton
->
slot
].
ha_ptr
;
}
...
...
@@ -450,6 +444,7 @@ void thd_set_ha_data(THD *thd, const struct handlerton *hton,
const
void
*
ha_data
)
{
plugin_ref
*
lock
=
&
thd
->
ha_data
[
hton
->
slot
].
lock
;
thd
->
ha_data
[
hton
->
slot
].
ha_ptr
=
const_cast
<
void
*>
(
ha_data
);
if
(
ha_data
&&
!*
lock
)
*
lock
=
ha_lock_engine
(
NULL
,
(
handlerton
*
)
hton
);
else
if
(
!
ha_data
&&
*
lock
)
...
...
@@ -457,7 +452,6 @@ void thd_set_ha_data(THD *thd, const struct handlerton *hton,
plugin_unlock
(
NULL
,
*
lock
);
*
lock
=
NULL
;
}
*
thd_ha_data
(
thd
,
hton
)
=
(
void
*
)
ha_data
;
}
...
...
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