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
8e77b038
Commit
8e77b038
authored
Oct 19, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups
parent
55cb35ef
Changes
11
Hide 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 @
8e77b038
...
...
@@ -1129,3 +1129,4 @@ libmysql/strings_def.h
libmysql_r/strings_def.h
storage/maria/aria_log_control
scripts/mytop
include/*.h.tmp
client/mysqltest.cc
View file @
8e77b038
...
...
@@ -886,6 +886,7 @@ static void init_connection_thd(struct st_connection *cn)
#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_read_query_result(cn) mysql_read_query_result(cn->mysql)
...
...
@@ -5487,9 +5488,7 @@ void do_connect(struct st_command *command)
con_slot
->
name
=
0
;
}
#ifdef EMBEDDED_LIBRARY
init_connection_thd
(
con_slot
);
#endif
/*EMBEDDED_LIBRARY*/
if
(
!
(
con_slot
->
mysql
=
mysql_init
(
0
)))
die
(
"Failed on mysql_init()"
);
...
...
@@ -8470,9 +8469,7 @@ int main(int argc, char **argv)
cursor_protocol_enabled
=
cursor_protocol
;
st_connection
*
con
=
connections
;
#ifdef EMBEDDED_LIBRARY
init_connection_thd
(
con
);
#endif
/*EMBEDDED_LIBRARY*/
if
(
!
(
con
->
mysql
=
mysql_init
(
0
)))
die
(
"Failed in mysql_init()"
);
if
(
opt_connect_timeout
)
...
...
plugin/auth_socket/auth_socket.c
View file @
8e77b038
...
...
@@ -24,7 +24,7 @@
the owner of the client process matches the user name that was used when
connecting to mysqld.
*/
#define _GNU_SOURCE
/* for struct ucred */
#define _GNU_SOURCE
1
/* for struct ucred */
#include <mysql/plugin_auth.h>
#include <sys/socket.h>
...
...
sql-common/client_plugin.c
View file @
8e77b038
...
...
@@ -243,6 +243,7 @@ int mysql_client_plugin_init()
struct
st_mysql_client_plugin
**
builtin
;
va_list
unused
;
DBUG_ENTER
(
"mysql_client_plugin_init"
);
LINT_INIT_STRUCT
(
unused
);
if
(
initialized
)
DBUG_RETURN
(
0
);
...
...
@@ -307,6 +308,7 @@ mysql_client_register_plugin(MYSQL *mysql,
{
va_list
unused
;
DBUG_ENTER
(
"mysql_client_register_plugin"
);
LINT_INIT_STRUCT
(
unused
);
if
(
is_not_initialized
(
mysql
,
plugin
->
name
))
DBUG_RETURN
(
NULL
);
...
...
sql/mdl.cc
View file @
8e77b038
...
...
@@ -2223,9 +2223,6 @@ bool MDL_context::visit_subgraph(MDL_wait_for_graph_visitor *gvisitor)
@note If during deadlock resolution context which performs deadlock
detection is chosen as a victim it will be informed about the
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
()
...
...
sql/set_var.cc
View file @
8e77b038
...
...
@@ -39,7 +39,6 @@
#include "tztime.h" // my_tz_find, my_tz_SYSTEM, struct Time_zone
#include "sql_acl.h" // SUPER_ACL
#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 "lock.h" // lock_global_read_lock,
// make_global_read_lock_block_commit,
...
...
sql/slave.cc
View file @
8e77b038
...
...
@@ -2206,11 +2206,8 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type)
simulate_error
|=
(
1
<<
SLAVE_THD_IO
););
DBUG_EXECUTE_IF
(
"simulate_sql_slave_error_on_init"
,
simulate_error
|=
(
1
<<
SLAVE_THD_SQL
););
#if !defined(DBUG_OFF)
if
(
init_thr_lock
()
||
thd
->
store_globals
()
||
simulate_error
&
(
1
<<
thd_type
))
#else
if
(
init_thr_lock
()
||
thd
->
store_globals
())
#endif
if
(
init_thr_lock
()
||
thd
->
store_globals
()
||
IF_DBUG
(
simulate_error
&
(
1
<<
thd_type
),
0
))
{
thd
->
cleanup
();
DBUG_RETURN
(
-
1
);
...
...
sql/sql_parse.cc
View file @
8e77b038
...
...
@@ -49,9 +49,8 @@
// mysql_restore_table
#include "sql_reload.h" // reload_acl_and_cache
#include "sql_admin.h" // mysql_assign_to_keycache
#include "sql_connect.h" // check_user,
// decrease_user_connections,
// thd_init_client_charset, check_mqh,
#include "sql_connect.h" // decrease_user_connections,
// check_mqh,
// reset_mqh
#include "sql_rename.h" // mysql_rename_table
#include "sql_tablespace.h" // mysql_alter_tablespace
...
...
sql/sql_show.cc
View file @
8e77b038
...
...
@@ -1984,7 +1984,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
CHARSET_INFO
*
cs
=
system_charset_info
;
char
*
user
;
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
?
NullS
:
thd
->
security_ctx
->
priv_user
;
...
...
sql/sql_table.cc
View file @
8e77b038
...
...
@@ -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
file for table can be opened.
...
...
@@ -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
);
return
result
;
}
#endif
/**
...
...
storage/myisam/mi_locking.c
View file @
8e77b038
...
...
@@ -315,7 +315,6 @@ void mi_update_status(void* param)
*/
if
(
info
->
state
==
&
info
->
save_state
)
{
#ifndef DBUG_OFF
DBUG_PRINT
(
"info"
,
(
"updating status: key_file: %lu data_file: %lu rows: %lu"
,
(
ulong
)
info
->
state
->
key_file_length
,
...
...
@@ -326,7 +325,6 @@ void mi_update_status(void* param)
DBUG_PRINT
(
"warning"
,(
"old info: key_file: %ld data_file: %ld"
,
(
long
)
info
->
s
->
state
.
state
.
key_file_length
,
(
long
)
info
->
s
->
state
.
state
.
data_file_length
));
#endif
info
->
s
->
state
.
state
=
*
info
->
state
;
#ifdef HAVE_QUERY_CACHE
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