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
10919b51
Commit
10919b51
authored
Feb 17, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-wl2278
parents
1b16f471
14c9ff5c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
26 deletions
+15
-26
mysql-test/r/ps_6bdb.result
mysql-test/r/ps_6bdb.result
+0
-2
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_test.cc
sql/sql_test.cc
+12
-21
No files found.
mysql-test/r/ps_6bdb.result
View file @
10919b51
...
...
@@ -2674,7 +2674,6 @@ Warning 1265 Data truncated for column 'c4' at row 1
Warning 1265 Data truncated for column 'c5' at row 1
Warning 1265 Data truncated for column 'c6' at row 1
Warning 1264 Out of range value adjusted for column 'c7' at row 1
Note 1265 Data truncated for column 'c12' at row 1
Warning 1264 Out of range value adjusted for column 'c12' at row 1
execute my_select ;
c1 1
...
...
@@ -2725,7 +2724,6 @@ Warning 1265 Data truncated for column 'c4' at row 1
Warning 1265 Data truncated for column 'c5' at row 1
Warning 1265 Data truncated for column 'c6' at row 1
Warning 1264 Out of range value adjusted for column 'c7' at row 1
Note 1265 Data truncated for column 'c12' at row 1
Warning 1264 Out of range value adjusted for column 'c12' at row 1
execute my_select ;
c1 -1
...
...
sql/mysql_priv.h
View file @
10919b51
...
...
@@ -921,7 +921,7 @@ void TEST_filesort(SORT_FIELD *sortorder,uint s_length);
void
print_plan
(
JOIN
*
join
,
double
read_time
,
double
record_count
,
uint
idx
,
const
char
*
info
);
#endif
void
mysql_print_status
(
THD
*
thd
);
void
mysql_print_status
();
/* key.cc */
int
find_ref_key
(
TABLE
*
form
,
Field
*
field
,
uint
*
offset
);
void
key_copy
(
byte
*
to_key
,
byte
*
from_record
,
KEY
*
key_info
,
uint
key_length
);
...
...
sql/mysqld.cc
View file @
10919b51
...
...
@@ -2143,7 +2143,7 @@ extern "C" void *signal_hand(void *arg __attribute__((unused)))
case
SIGHUP
:
if
(
!
abort_loop
)
{
mysql_print_status
(
(
THD
*
)
0
);
// Print some debug info
mysql_print_status
();
// Print some debug info
reload_acl_and_cache
((
THD
*
)
0
,
(
REFRESH_LOG
|
REFRESH_TABLES
|
REFRESH_FAST
|
REFRESH_GRANT
|
...
...
sql/sql_parse.cc
View file @
10919b51
...
...
@@ -1992,7 +1992,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
statistic_increment
(
thd
->
status_var
.
com_other
,
&
LOCK_status
);
if
(
check_global_access
(
thd
,
SUPER_ACL
))
break
;
/* purecov: inspected */
mysql_print_status
(
thd
);
mysql_print_status
();
mysql_log
.
write
(
thd
,
command
,
NullS
);
send_eof
(
thd
);
break
;
...
...
sql/sql_test.cc
View file @
10919b51
...
...
@@ -436,29 +436,24 @@ reads: %10lu\n\n",
}
void
mysql_print_status
(
THD
*
thd
)
void
mysql_print_status
()
{
char
current_dir
[
FN_REFLEN
];
STATUS_VAR
tmp
;
calc_sum_of_all_status
(
&
tmp
);
printf
(
"
\n
Status information:
\n\n
"
);
my_getwd
(
current_dir
,
sizeof
(
current_dir
),
MYF
(
0
));
printf
(
"Current dir: %s
\n
"
,
current_dir
);
printf
(
"Running threads: %d Stack size: %ld
\n
"
,
thread_count
,
(
long
)
thread_stack
);
if
(
thd
)
thd
->
proc_info
=
"locks"
;
thr_print_locks
();
// Write some debug info
#ifndef DBUG_OFF
if
(
thd
)
thd
->
proc_info
=
"table cache"
;
print_cached_tables
();
#endif
/* Print key cache status */
if
(
thd
)
thd
->
proc_info
=
"key cache"
;
puts
(
"
\n
Key caches:"
);
process_key_caches
(
print_key_cache_status
);
if
(
thd
)
thd
->
proc_info
=
"status"
;
pthread_mutex_lock
(
&
LOCK_status
);
printf
(
"
\n
handler status:
\n
\
read_key: %10lu
\n
\
...
...
@@ -468,20 +463,20 @@ read_first: %10lu\n\
write: %10lu
\n
\
delete %10lu
\n
\
update: %10lu
\n
"
,
t
hd
->
status_var
.
ha_read_key_count
,
t
hd
->
status_var
.
ha_read_next_count
,
t
hd
->
status_var
.
ha_read_rnd_count
,
t
hd
->
status_var
.
ha_read_first_count
,
t
hd
->
status_var
.
ha_write_count
,
t
hd
->
status_var
.
ha_delete_count
,
t
hd
->
status_var
.
ha_update_count
);
t
mp
.
ha_read_key_count
,
t
mp
.
ha_read_next_count
,
t
mp
.
ha_read_rnd_count
,
t
mp
.
ha_read_first_count
,
t
mp
.
ha_write_count
,
t
mp
.
ha_delete_count
,
t
mp
.
ha_update_count
);
pthread_mutex_unlock
(
&
LOCK_status
);
printf
(
"
\n
Table status:
\n
\
Opened tables: %10lu
\n
\
Open tables: %10lu
\n
\
Open files: %10lu
\n
\
Open streams: %10lu
\n
"
,
t
hd
->
status_var
.
opened_tables
,
t
mp
.
opened_tables
,
(
ulong
)
cached_tables
(),
(
ulong
)
my_file_opened
,
(
ulong
)
my_stream_opened
);
...
...
@@ -499,8 +494,6 @@ Next alarm time: %lu\n",
#endif
display_table_locks
();
fflush
(
stdout
);
if
(
thd
)
thd
->
proc_info
=
"malloc"
;
my_checkmalloc
();
TERMINATE
(
stdout
);
// Write malloc information
...
...
@@ -531,6 +524,4 @@ Estimated memory (with thread stack): %ld\n",
(
long
)
(
thread_count
*
thread_stack
+
info
.
hblkhd
+
info
.
arena
));
#endif
puts
(
""
);
if
(
thd
)
thd
->
proc_info
=
0
;
}
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