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
47b16dae
Commit
47b16dae
authored
Feb 27, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
posreview changing (SCRUM)
increased compatibility postmerge changing
parent
80236063
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
sql/sql_class.h
sql/sql_class.h
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+2
-5
vio/viosocket.c
vio/viosocket.c
+1
-1
No files found.
sql/sql_class.h
View file @
47b16dae
...
...
@@ -352,7 +352,7 @@ class THD :public ilink
*/
char
*
host
,
*
user
,
*
priv_user
,
*
db
,
*
ip
;
/* remote (peer) port */
u
_int16_t
peer_port
;
u
int16
peer_port
;
/* Points to info-string that will show in SHOW PROCESSLIST */
const
char
*
proc_info
;
/* points to host if host is available, otherwise points to ip */
...
...
sql/sql_show.cc
View file @
47b16dae
...
...
@@ -1064,13 +1064,10 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
{
if
((
thd_info
->
host
=
thd
->
alloc
(
LIST_PROCESS_HOST_LEN
+
1
)))
snprintf
((
char
*
)
thd_info
->
host
,
LIST_PROCESS_HOST_LEN
,
"%s:%u"
,
(
tmp
->
host
?
tmp
->
host
:
tmp
->
ip
)
,
tmp
->
peer_port
);
thd
->
host_or_ip
,
tmp
->
peer_port
);
}
else
thd_info
->
host
=
thd
->
strdup
(
tmp
->
host
?
tmp
->
host
:
(
tmp
->
ip
?
tmp
->
ip
:
(
tmp
->
system_thread
?
"none"
:
"connecting host"
)));
thd_info
->
host
=
thd
->
strdup
(
thd
->
host_or_ip
);
if
((
thd_info
->
db
=
tmp
->
db
))
// Safe test
thd_info
->
db
=
thd
->
strdup
(
thd_info
->
db
);
thd_info
->
command
=
(
int
)
tmp
->
command
;
...
...
vio/viosocket.c
View file @
47b16dae
...
...
@@ -277,7 +277,7 @@ my_socket vio_fd(Vio* vio)
}
my_bool
vio_peer_addr
(
Vio
*
vio
,
char
*
buf
,
u
_int16_t
*
port
)
my_bool
vio_peer_addr
(
Vio
*
vio
,
char
*
buf
,
u
int16
*
port
)
{
DBUG_ENTER
(
"vio_peer_addr"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d"
,
vio
->
sd
));
...
...
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