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
664ce4c5
Commit
664ce4c5
authored
Mar 24, 2015
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linking: move the inline functions
parent
4106dfe8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
38 deletions
+37
-38
sql/handler.cc
sql/handler.cc
+0
-35
sql/handler.h
sql/handler.h
+14
-1
sql/sql_class.h
sql/sql_class.h
+23
-0
sql/sql_explain.h
sql/sql_explain.h
+0
-2
No files found.
sql/handler.cc
View file @
664ce4c5
...
@@ -43,8 +43,6 @@
...
@@ -43,8 +43,6 @@
#include "debug_sync.h" // DEBUG_SYNC
#include "debug_sync.h" // DEBUG_SYNC
#include "sql_audit.h"
#include "sql_audit.h"
#include "sql_analyze_stmt.h" // tracker in TABLE_IO_WAIT
#ifdef WITH_PARTITION_STORAGE_ENGINE
#ifdef WITH_PARTITION_STORAGE_ENGINE
#include "ha_partition.h"
#include "ha_partition.h"
#endif
#endif
...
@@ -56,17 +54,6 @@
...
@@ -56,17 +54,6 @@
#include "wsrep_mysqld.h"
#include "wsrep_mysqld.h"
#include "wsrep.h"
#include "wsrep.h"
#define TABLE_IO_WAIT(TRACKER, PSI, OP, INDEX, FLAGS, PAYLOAD) \
{ \
if (unlikely(tracker)) \
tracker->start_tracking(); \
\
MYSQL_TABLE_IO_WAIT(PSI, OP, INDEX, FLAGS, PAYLOAD); \
\
if (unlikely(tracker)) \
tracker->stop_tracking(); \
}
/*
/*
While we have legacy_db_type, we have this array to
While we have legacy_db_type, we have this array to
check for dups and to find handlerton from legacy_db_type.
check for dups and to find handlerton from legacy_db_type.
...
@@ -2588,28 +2575,6 @@ int handler::ha_close(void)
...
@@ -2588,28 +2575,6 @@ int handler::ha_close(void)
DBUG_RETURN
(
close
());
DBUG_RETURN
(
close
());
}
}
inline
int
handler
::
ha_write_tmp_row
(
uchar
*
buf
)
{
int
error
;
MYSQL_INSERT_ROW_START
(
table_share
->
db
.
str
,
table_share
->
table_name
.
str
);
increment_statistics
(
&
SSV
::
ha_tmp_write_count
);
TABLE_IO_WAIT
(
tracker
,
m_psi
,
PSI_TABLE_WRITE_ROW
,
MAX_KEY
,
0
,
{
error
=
write_row
(
buf
);
})
MYSQL_INSERT_ROW_DONE
(
error
);
return
error
;
}
inline
int
handler
::
ha_update_tmp_row
(
const
uchar
*
old_data
,
uchar
*
new_data
)
{
int
error
;
MYSQL_UPDATE_ROW_START
(
table_share
->
db
.
str
,
table_share
->
table_name
.
str
);
increment_statistics
(
&
SSV
::
ha_tmp_update_count
);
TABLE_IO_WAIT
(
tracker
,
m_psi
,
PSI_TABLE_UPDATE_ROW
,
active_index
,
0
,
{
error
=
update_row
(
old_data
,
new_data
);})
MYSQL_UPDATE_ROW_DONE
(
error
);
return
error
;
}
int
handler
::
ha_rnd_next
(
uchar
*
buf
)
int
handler
::
ha_rnd_next
(
uchar
*
buf
)
{
{
...
...
sql/handler.h
View file @
664ce4c5
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
#include "sql_array.h"
/* Dynamic_array<> */
#include "sql_array.h"
/* Dynamic_array<> */
#include "mdl.h"
#include "mdl.h"
#include "sql_analyze_stmt.h" // for Exec_time_tracker
#include <my_compare.h>
#include <my_compare.h>
#include <ft_global.h>
#include <ft_global.h>
#include <keycache.h>
#include <keycache.h>
...
@@ -1571,7 +1573,6 @@ typedef struct {
...
@@ -1571,7 +1573,6 @@ typedef struct {
#define UNDEF_NODEGROUP 65535
#define UNDEF_NODEGROUP 65535
class
Item
;
class
Item
;
class
Exec_time_tracker
;
struct
st_table_log_memory_entry
;
struct
st_table_log_memory_entry
;
class
partition_info
;
class
partition_info
;
...
@@ -4206,6 +4207,18 @@ inline const char *table_case_name(HA_CREATE_INFO *info, const char *name)
...
@@ -4206,6 +4207,18 @@ inline const char *table_case_name(HA_CREATE_INFO *info, const char *name)
return
((
lower_case_table_names
==
2
&&
info
->
alias
)
?
info
->
alias
:
name
);
return
((
lower_case_table_names
==
2
&&
info
->
alias
)
?
info
->
alias
:
name
);
}
}
#define TABLE_IO_WAIT(TRACKER, PSI, OP, INDEX, FLAGS, PAYLOAD) \
{ \
if (unlikely(tracker)) \
tracker->start_tracking(); \
\
MYSQL_TABLE_IO_WAIT(PSI, OP, INDEX, FLAGS, PAYLOAD); \
\
if (unlikely(tracker)) \
tracker->stop_tracking(); \
}
void
print_keydup_error
(
TABLE
*
table
,
KEY
*
key
,
const
char
*
msg
,
myf
errflag
);
void
print_keydup_error
(
TABLE
*
table
,
KEY
*
key
,
const
char
*
msg
,
myf
errflag
);
void
print_keydup_error
(
TABLE
*
table
,
KEY
*
key
,
myf
errflag
);
void
print_keydup_error
(
TABLE
*
table
,
KEY
*
key
,
myf
errflag
);
#endif
#endif
sql/sql_class.h
View file @
664ce4c5
...
@@ -5271,6 +5271,29 @@ inline int handler::ha_read_first_row(uchar *buf, uint primary_key)
...
@@ -5271,6 +5271,29 @@ inline int handler::ha_read_first_row(uchar *buf, uint primary_key)
return
error
;
return
error
;
}
}
inline
int
handler
::
ha_write_tmp_row
(
uchar
*
buf
)
{
int
error
;
MYSQL_INSERT_ROW_START
(
table_share
->
db
.
str
,
table_share
->
table_name
.
str
);
increment_statistics
(
&
SSV
::
ha_tmp_write_count
);
TABLE_IO_WAIT
(
tracker
,
m_psi
,
PSI_TABLE_WRITE_ROW
,
MAX_KEY
,
0
,
{
error
=
write_row
(
buf
);
})
MYSQL_INSERT_ROW_DONE
(
error
);
return
error
;
}
inline
int
handler
::
ha_update_tmp_row
(
const
uchar
*
old_data
,
uchar
*
new_data
)
{
int
error
;
MYSQL_UPDATE_ROW_START
(
table_share
->
db
.
str
,
table_share
->
table_name
.
str
);
increment_statistics
(
&
SSV
::
ha_tmp_update_count
);
TABLE_IO_WAIT
(
tracker
,
m_psi
,
PSI_TABLE_UPDATE_ROW
,
active_index
,
0
,
{
error
=
update_row
(
old_data
,
new_data
);})
MYSQL_UPDATE_ROW_DONE
(
error
);
return
error
;
}
extern
pthread_attr_t
*
get_connection_attrib
(
void
);
extern
pthread_attr_t
*
get_connection_attrib
(
void
);
/**
/**
...
...
sql/sql_explain.h
View file @
664ce4c5
...
@@ -14,8 +14,6 @@
...
@@ -14,8 +14,6 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "sql_analyze_stmt.h"
/*
/*
== EXPLAIN/ANALYZE architecture ==
== EXPLAIN/ANALYZE architecture ==
...
...
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