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
25e481ae
Commit
25e481ae
authored
Jan 30, 2007
by
monty@mysql.com/narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problems detected by pushbuild
parent
1f6d91c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
mysql-test/t/log_state.test
mysql-test/t/log_state.test
+5
-1
plugin/daemon_example/daemon_example.c
plugin/daemon_example/daemon_example.c
+3
-3
sql-common/client.c
sql-common/client.c
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+5
-1
No files found.
mysql-test/t/log_state.test
View file @
25e481ae
...
@@ -37,7 +37,6 @@ set session long_query_time=1;
...
@@ -37,7 +37,6 @@ set session long_query_time=1;
select
sleep
(
2
);
select
sleep
(
2
);
--
replace_column
1
TIMESTAMP
2
USER_HOST
3
QUERY_TIME
--
replace_column
1
TIMESTAMP
2
USER_HOST
3
QUERY_TIME
select
*
from
mysql
.
slow_log
;
select
*
from
mysql
.
slow_log
;
disconnect
con1
;
connection
default
;
connection
default
;
show
global
variables
show
global
variables
where
Variable_name
=
'log'
or
Variable_name
=
'log_slow_queries'
or
where
Variable_name
=
'log'
or
Variable_name
=
'log_slow_queries'
or
...
@@ -121,3 +120,8 @@ drop table t1;
...
@@ -121,3 +120,8 @@ drop table t1;
select
*
from
mysql
.
general_log
;
select
*
from
mysql
.
general_log
;
--
enable_ps_protocol
--
enable_ps_protocol
#
# Cleanup (must be done last to avoid delayed 'Quit' message in general log)
#
disconnect
con1
;
plugin/daemon_example/daemon_example.c
View file @
25e481ae
...
@@ -19,11 +19,11 @@
...
@@ -19,11 +19,11 @@
#include <mysql/plugin.h>
#include <mysql/plugin.h>
/*
/*
#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
Disable __attribute__() on non-gcc compilers.
*/
#if !defined(__attribute__) && !defined(__GNUC__)
#define __attribute__(A)
#define __attribute__(A)
#endif
#endif
*/
/*
/*
...
...
sql-common/client.c
View file @
25e481ae
...
@@ -682,7 +682,7 @@ cli_advanced_command(MYSQL *mysql, enum enum_server_command command,
...
@@ -682,7 +682,7 @@ cli_advanced_command(MYSQL *mysql, enum enum_server_command command,
mysql
->
info
=
0
;
mysql
->
info
=
0
;
mysql
->
affected_rows
=
~
(
my_ulonglong
)
0
;
mysql
->
affected_rows
=
~
(
my_ulonglong
)
0
;
/*
/*
We don't want to clear the protocol buffer on COM_QUIT, be
acsu
e if
We don't want to clear the protocol buffer on COM_QUIT, be
caus
e if
the previous command was a shutdown command, we may have the
the previous command was a shutdown command, we may have the
response for the COM_QUIT already in the communication buffer
response for the COM_QUIT already in the communication buffer
*/
*/
...
...
sql/sql_parse.cc
View file @
25e481ae
...
@@ -413,7 +413,11 @@ int check_user(THD *thd, enum enum_server_command command,
...
@@ -413,7 +413,11 @@ int check_user(THD *thd, enum enum_server_command command,
}
}
}
}
/* Why logging is performed before all checks've passed? */
/*
Log the command before authentication checks, so that the user can
check the log for the tried login tried and also to detect
break-in attempts.
*/
general_log_print
(
thd
,
command
,
general_log_print
(
thd
,
command
,
(
thd
->
main_security_ctx
.
priv_user
==
(
thd
->
main_security_ctx
.
priv_user
==
thd
->
main_security_ctx
.
user
?
thd
->
main_security_ctx
.
user
?
...
...
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