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
a39a9111
Commit
a39a9111
authored
Dec 15, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge (and including the fix for bug#48939 since that was not included in mysql-trunk-bugfixing).
parents
0b1a15e9
dd46365a
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
689 additions
and
2 deletions
+689
-2
mysql-test/include/check_key_reads.inc
mysql-test/include/check_key_reads.inc
+6
-0
mysql-test/include/check_key_req.inc
mysql-test/include/check_key_req.inc
+9
-0
mysql-test/r/partition_key_cache.result
mysql-test/r/partition_key_cache.result
+420
-0
mysql-test/t/partition_key_cache.test
mysql-test/t/partition_key_cache.test
+252
-0
sql/protocol.cc
sql/protocol.cc
+2
-2
No files found.
mysql-test/include/check_key_reads.inc
0 → 100644
View file @
a39a9111
# include file for checking if variable key_reads is zero
let
$key_reads
=
query_get_value
(
SHOW
STATUS
LIKE
'key_reads'
,
Value
,
1
);
--
disable_query_log
eval
SELECT
IF
(
$key_reads
=
0
,
"Yes!"
,
"No!"
)
as
'Zero key reads?'
;
FLUSH
STATUS
;
--
enable_query_log
mysql-test/include/check_key_req.inc
0 → 100644
View file @
a39a9111
# include file for checking if variable key_reads = key_read_requests
let
$key_reads
=
query_get_value
(
SHOW
STATUS
LIKE
'key_reads'
,
Value
,
1
);
let
$key_r_req
=
query_get_value
(
SHOW
STATUS
LIKE
'key_read_requests'
,
Value
,
1
);
let
$key_writes
=
query_get_value
(
SHOW
STATUS
LIKE
'key_writes'
,
Value
,
1
);
let
$key_w_req
=
query_get_value
(
SHOW
STATUS
LIKE
'key_write_requests'
,
Value
,
1
);
--
disable_query_log
eval
SELECT
IF
(
$key_reads
=
$key_r_req
,
"reads == requests"
,
"reads != requests"
)
as
'reads vs requests'
;
eval
SELECT
IF
(
$key_writes
=
$key_w_req
,
"writes == requests"
,
"writes != requests"
)
as
'writes vs requests'
;
--
enable_query_log
mysql-test/r/partition_key_cache.result
0 → 100644
View file @
a39a9111
This diff is collapsed.
Click to expand it.
mysql-test/t/partition_key_cache.test
0 → 100644
View file @
a39a9111
This diff is collapsed.
Click to expand it.
sql/protocol.cc
View file @
a39a9111
...
@@ -411,8 +411,8 @@ bool net_send_error_packet(THD *thd, uint sql_errno, const char *err,
...
@@ -411,8 +411,8 @@ bool net_send_error_packet(THD *thd, uint sql_errno, const char *err,
thd
->
variables
.
character_set_results
,
thd
->
variables
.
character_set_results
,
err
,
strlen
(
err
),
err
,
strlen
(
err
),
system_charset_info
,
&
error
);
system_charset_info
,
&
error
);
length
=
(
uint
)
(
strmake
((
char
*
)
pos
,
(
char
*
)
converted_err
,
MYSQL_ERRMSG_SIZE
)
-
length
=
(
uint
)
(
strmake
((
char
*
)
pos
,
(
char
*
)
converted_err
,
(
char
*
)
buff
);
MYSQL_ERRMSG_SIZE
-
1
)
-
(
char
*
)
buff
);
err
=
(
char
*
)
buff
;
err
=
(
char
*
)
buff
;
DBUG_RETURN
(
net_write_command
(
net
,(
uchar
)
255
,
(
uchar
*
)
""
,
0
,
(
uchar
*
)
err
,
DBUG_RETURN
(
net_write_command
(
net
,(
uchar
)
255
,
(
uchar
*
)
""
,
0
,
(
uchar
*
)
err
,
length
));
length
));
...
...
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