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
42b82357
Commit
42b82357
authored
Oct 19, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups
parent
533d274c
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
20 deletions
+12
-20
.bzrignore
.bzrignore
+1
-0
client/mysqltest.cc
client/mysqltest.cc
+1
-4
plugin/auth_socket/auth_socket.c
plugin/auth_socket/auth_socket.c
+1
-1
sql-common/client_plugin.c
sql-common/client_plugin.c
+2
-0
sql/mdl.cc
sql/mdl.cc
+0
-3
sql/set_var.cc
sql/set_var.cc
+0
-1
sql/slave.cc
sql/slave.cc
+2
-5
sql/sql_parse.cc
sql/sql_parse.cc
+2
-3
sql/sql_show.cc
sql/sql_show.cc
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+2
-0
storage/myisam/mi_locking.c
storage/myisam/mi_locking.c
+0
-2
No files found.
.bzrignore
View file @
42b82357
...
@@ -1129,3 +1129,4 @@ libmysql/strings_def.h
...
@@ -1129,3 +1129,4 @@ libmysql/strings_def.h
libmysql_r/strings_def.h
libmysql_r/strings_def.h
storage/maria/aria_log_control
storage/maria/aria_log_control
scripts/mytop
scripts/mytop
include/*.h.tmp
client/mysqltest.cc
View file @
42b82357
...
@@ -886,6 +886,7 @@ static void init_connection_thd(struct st_connection *cn)
...
@@ -886,6 +886,7 @@ static void init_connection_thd(struct st_connection *cn)
#else
/*EMBEDDED_LIBRARY*/
#else
/*EMBEDDED_LIBRARY*/
#define init_connection_thd(X) do { } while(0)
#define do_send_query(cn,q,q_len) mysql_send_query(cn->mysql, q, q_len)
#define do_send_query(cn,q,q_len) mysql_send_query(cn->mysql, q, q_len)
#define do_read_query_result(cn) mysql_read_query_result(cn->mysql)
#define do_read_query_result(cn) mysql_read_query_result(cn->mysql)
...
@@ -5487,9 +5488,7 @@ void do_connect(struct st_command *command)
...
@@ -5487,9 +5488,7 @@ void do_connect(struct st_command *command)
con_slot
->
name
=
0
;
con_slot
->
name
=
0
;
}
}
#ifdef EMBEDDED_LIBRARY
init_connection_thd
(
con_slot
);
init_connection_thd
(
con_slot
);
#endif
/*EMBEDDED_LIBRARY*/
if
(
!
(
con_slot
->
mysql
=
mysql_init
(
0
)))
if
(
!
(
con_slot
->
mysql
=
mysql_init
(
0
)))
die
(
"Failed on mysql_init()"
);
die
(
"Failed on mysql_init()"
);
...
@@ -8470,9 +8469,7 @@ int main(int argc, char **argv)
...
@@ -8470,9 +8469,7 @@ int main(int argc, char **argv)
cursor_protocol_enabled
=
cursor_protocol
;
cursor_protocol_enabled
=
cursor_protocol
;
st_connection
*
con
=
connections
;
st_connection
*
con
=
connections
;
#ifdef EMBEDDED_LIBRARY
init_connection_thd
(
con
);
init_connection_thd
(
con
);
#endif
/*EMBEDDED_LIBRARY*/
if
(
!
(
con
->
mysql
=
mysql_init
(
0
)))
if
(
!
(
con
->
mysql
=
mysql_init
(
0
)))
die
(
"Failed in mysql_init()"
);
die
(
"Failed in mysql_init()"
);
if
(
opt_connect_timeout
)
if
(
opt_connect_timeout
)
...
...
plugin/auth_socket/auth_socket.c
View file @
42b82357
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
the owner of the client process matches the user name that was used when
the owner of the client process matches the user name that was used when
connecting to mysqld.
connecting to mysqld.
*/
*/
#define _GNU_SOURCE
/* for struct ucred */
#define _GNU_SOURCE
1
/* for struct ucred */
#include <mysql/plugin_auth.h>
#include <mysql/plugin_auth.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
...
sql-common/client_plugin.c
View file @
42b82357
...
@@ -243,6 +243,7 @@ int mysql_client_plugin_init()
...
@@ -243,6 +243,7 @@ int mysql_client_plugin_init()
struct
st_mysql_client_plugin
**
builtin
;
struct
st_mysql_client_plugin
**
builtin
;
va_list
unused
;
va_list
unused
;
DBUG_ENTER
(
"mysql_client_plugin_init"
);
DBUG_ENTER
(
"mysql_client_plugin_init"
);
LINT_INIT_STRUCT
(
unused
);
if
(
initialized
)
if
(
initialized
)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
@@ -307,6 +308,7 @@ mysql_client_register_plugin(MYSQL *mysql,
...
@@ -307,6 +308,7 @@ mysql_client_register_plugin(MYSQL *mysql,
{
{
va_list
unused
;
va_list
unused
;
DBUG_ENTER
(
"mysql_client_register_plugin"
);
DBUG_ENTER
(
"mysql_client_register_plugin"
);
LINT_INIT_STRUCT
(
unused
);
if
(
is_not_initialized
(
mysql
,
plugin
->
name
))
if
(
is_not_initialized
(
mysql
,
plugin
->
name
))
DBUG_RETURN
(
NULL
);
DBUG_RETURN
(
NULL
);
...
...
sql/mdl.cc
View file @
42b82357
...
@@ -2223,9 +2223,6 @@ bool MDL_context::visit_subgraph(MDL_wait_for_graph_visitor *gvisitor)
...
@@ -2223,9 +2223,6 @@ bool MDL_context::visit_subgraph(MDL_wait_for_graph_visitor *gvisitor)
@note If during deadlock resolution context which performs deadlock
@note If during deadlock resolution context which performs deadlock
detection is chosen as a victim it will be informed about the
detection is chosen as a victim it will be informed about the
fact by setting VICTIM status to its wait slot.
fact by setting VICTIM status to its wait slot.
@retval TRUE A deadlock is found.
@retval FALSE No deadlock found.
*/
*/
void
MDL_context
::
find_deadlock
()
void
MDL_context
::
find_deadlock
()
...
...
sql/set_var.cc
View file @
42b82357
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include "tztime.h" // my_tz_find, my_tz_SYSTEM, struct Time_zone
#include "tztime.h" // my_tz_find, my_tz_SYSTEM, struct Time_zone
#include "sql_acl.h" // SUPER_ACL
#include "sql_acl.h" // SUPER_ACL
#include "sql_select.h" // free_underlaid_joins
#include "sql_select.h" // free_underlaid_joins
#include "sql_show.h" // make_default_log_name
#include "sql_view.h" // updatable_views_with_limit_typelib
#include "sql_view.h" // updatable_views_with_limit_typelib
#include "lock.h" // lock_global_read_lock,
#include "lock.h" // lock_global_read_lock,
// make_global_read_lock_block_commit,
// make_global_read_lock_block_commit,
...
...
sql/slave.cc
View file @
42b82357
...
@@ -2206,11 +2206,8 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type)
...
@@ -2206,11 +2206,8 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type)
simulate_error
|=
(
1
<<
SLAVE_THD_IO
););
simulate_error
|=
(
1
<<
SLAVE_THD_IO
););
DBUG_EXECUTE_IF
(
"simulate_sql_slave_error_on_init"
,
DBUG_EXECUTE_IF
(
"simulate_sql_slave_error_on_init"
,
simulate_error
|=
(
1
<<
SLAVE_THD_SQL
););
simulate_error
|=
(
1
<<
SLAVE_THD_SQL
););
#if !defined(DBUG_OFF)
if
(
init_thr_lock
()
||
thd
->
store_globals
()
||
if
(
init_thr_lock
()
||
thd
->
store_globals
()
||
simulate_error
&
(
1
<<
thd_type
))
IF_DBUG
(
simulate_error
&
(
1
<<
thd_type
),
0
))
#else
if
(
init_thr_lock
()
||
thd
->
store_globals
())
#endif
{
{
thd
->
cleanup
();
thd
->
cleanup
();
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
...
...
sql/sql_parse.cc
View file @
42b82357
...
@@ -49,9 +49,8 @@
...
@@ -49,9 +49,8 @@
// mysql_restore_table
// mysql_restore_table
#include "sql_reload.h" // reload_acl_and_cache
#include "sql_reload.h" // reload_acl_and_cache
#include "sql_admin.h" // mysql_assign_to_keycache
#include "sql_admin.h" // mysql_assign_to_keycache
#include "sql_connect.h" // check_user,
#include "sql_connect.h" // decrease_user_connections,
// decrease_user_connections,
// check_mqh,
// thd_init_client_charset, check_mqh,
// reset_mqh
// reset_mqh
#include "sql_rename.h" // mysql_rename_table
#include "sql_rename.h" // mysql_rename_table
#include "sql_tablespace.h" // mysql_alter_tablespace
#include "sql_tablespace.h" // mysql_alter_tablespace
...
...
sql/sql_show.cc
View file @
42b82357
...
@@ -1984,7 +1984,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
...
@@ -1984,7 +1984,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
CHARSET_INFO
*
cs
=
system_charset_info
;
CHARSET_INFO
*
cs
=
system_charset_info
;
char
*
user
;
char
*
user
;
my_hrtime_t
unow
=
my_hrtime
();
my_hrtime_t
unow
=
my_hrtime
();
DBUG_ENTER
(
"fill_
process_
list"
);
DBUG_ENTER
(
"fill_
schema_process
list"
);
user
=
thd
->
security_ctx
->
master_access
&
PROCESS_ACL
?
user
=
thd
->
security_ctx
->
master_access
&
PROCESS_ACL
?
NullS
:
thd
->
security_ctx
->
priv_user
;
NullS
:
thd
->
security_ctx
->
priv_user
;
...
...
sql/sql_table.cc
View file @
42b82357
...
@@ -3876,6 +3876,7 @@ void sp_prepare_create_field(THD *thd, Create_field *sql_field)
...
@@ -3876,6 +3876,7 @@ void sp_prepare_create_field(THD *thd, Create_field *sql_field)
}
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
/**
/**
Auxiliary function which allows to check if freshly created .FRM
Auxiliary function which allows to check if freshly created .FRM
file for table can be opened.
file for table can be opened.
...
@@ -3913,6 +3914,7 @@ static bool check_if_created_table_can_be_opened(THD *thd,
...
@@ -3913,6 +3914,7 @@ static bool check_if_created_table_can_be_opened(THD *thd,
(
void
)
file
->
ha_create_handler_files
(
path
,
NULL
,
CHF_DELETE_FLAG
,
create_info
);
(
void
)
file
->
ha_create_handler_files
(
path
,
NULL
,
CHF_DELETE_FLAG
,
create_info
);
return
result
;
return
result
;
}
}
#endif
/**
/**
...
...
storage/myisam/mi_locking.c
View file @
42b82357
...
@@ -315,7 +315,6 @@ void mi_update_status(void* param)
...
@@ -315,7 +315,6 @@ void mi_update_status(void* param)
*/
*/
if
(
info
->
state
==
&
info
->
save_state
)
if
(
info
->
state
==
&
info
->
save_state
)
{
{
#ifndef DBUG_OFF
DBUG_PRINT
(
"info"
,
DBUG_PRINT
(
"info"
,
(
"updating status: key_file: %lu data_file: %lu rows: %lu"
,
(
"updating status: key_file: %lu data_file: %lu rows: %lu"
,
(
ulong
)
info
->
state
->
key_file_length
,
(
ulong
)
info
->
state
->
key_file_length
,
...
@@ -326,7 +325,6 @@ void mi_update_status(void* param)
...
@@ -326,7 +325,6 @@ void mi_update_status(void* param)
DBUG_PRINT
(
"warning"
,(
"old info: key_file: %ld data_file: %ld"
,
DBUG_PRINT
(
"warning"
,(
"old info: key_file: %ld data_file: %ld"
,
(
long
)
info
->
s
->
state
.
state
.
key_file_length
,
(
long
)
info
->
s
->
state
.
state
.
key_file_length
,
(
long
)
info
->
s
->
state
.
state
.
data_file_length
));
(
long
)
info
->
s
->
state
.
state
.
data_file_length
));
#endif
info
->
s
->
state
.
state
=
*
info
->
state
;
info
->
s
->
state
.
state
=
*
info
->
state
;
#ifdef HAVE_QUERY_CACHE
#ifdef HAVE_QUERY_CACHE
DBUG_PRINT
(
"info"
,
(
"invalidator... '%s' (status update)"
,
DBUG_PRINT
(
"info"
,
(
"invalidator... '%s' (status update)"
,
...
...
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