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
c43a3328
Commit
c43a3328
authored
Aug 14, 2006
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0
into zim.(none):/home/brian/mysql/dep-5.0
parents
7429c871
d03b39aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
11 deletions
+31
-11
myisam/sort.c
myisam/sort.c
+5
-7
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+2
-2
mysql-test/r/repair.result
mysql-test/r/repair.result
+11
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+2
-2
mysql-test/t/repair.test
mysql-test/t/repair.test
+11
-0
No files found.
myisam/sort.c
View file @
c43a3328
...
@@ -483,13 +483,6 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
...
@@ -483,13 +483,6 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
if
(
!
got_error
)
if
(
!
got_error
)
{
{
mi_set_key_active
(
share
->
state
.
key_map
,
sinfo
->
key
);
mi_set_key_active
(
share
->
state
.
key_map
,
sinfo
->
key
);
if
(
param
->
testflag
&
T_STATISTICS
)
update_key_parts
(
sinfo
->
keyinfo
,
rec_per_key_part
,
sinfo
->
unique
,
param
->
stats_method
==
MI_STATS_METHOD_IGNORE_NULLS
?
sinfo
->
notnull
:
NULL
,
(
ulonglong
)
info
->
state
->
records
);
if
(
!
sinfo
->
buffpek
.
elements
)
if
(
!
sinfo
->
buffpek
.
elements
)
{
{
if
(
param
->
testflag
&
T_VERBOSE
)
if
(
param
->
testflag
&
T_VERBOSE
)
...
@@ -501,6 +494,11 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
...
@@ -501,6 +494,11 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
flush_ft_buf
(
sinfo
)
||
flush_pending_blocks
(
sinfo
))
flush_ft_buf
(
sinfo
)
||
flush_pending_blocks
(
sinfo
))
got_error
=
1
;
got_error
=
1
;
}
}
if
(
!
got_error
&&
param
->
testflag
&
T_STATISTICS
)
update_key_parts
(
sinfo
->
keyinfo
,
rec_per_key_part
,
sinfo
->
unique
,
param
->
stats_method
==
MI_STATS_METHOD_IGNORE_NULLS
?
sinfo
->
notnull
:
NULL
,
(
ulonglong
)
info
->
state
->
records
);
}
}
my_free
((
gptr
)
sinfo
->
sort_keys
,
MYF
(
0
));
my_free
((
gptr
)
sinfo
->
sort_keys
,
MYF
(
0
));
my_free
(
mi_get_rec_buff_ptr
(
info
,
sinfo
->
rec_buff
),
my_free
(
mi_get_rec_buff_ptr
(
info
,
sinfo
->
rec_buff
),
...
...
mysql-test/r/mysqldump.result
View file @
c43a3328
...
@@ -2876,7 +2876,7 @@ drop view v1;
...
@@ -2876,7 +2876,7 @@ drop view v1;
drop table t1;
drop table t1;
drop database mysqldump_dbb;
drop database mysqldump_dbb;
use test;
use test;
create user mysqltest_1;
create user mysqltest_1
@localhost
;
create table t1(a int, b varchar(34));
create table t1(a int, b varchar(34));
reset master;
reset master;
mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need the RELOAD privilege for this operation (1227)
mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need the RELOAD privilege for this operation (1227)
...
@@ -2891,4 +2891,4 @@ CREATE TABLE `t1` (
...
@@ -2891,4 +2891,4 @@ CREATE TABLE `t1` (
`b` varchar(34) default NULL
`b` varchar(34) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
drop table t1;
drop table t1;
drop user mysqltest_1;
drop user mysqltest_1
@localhost
;
mysql-test/r/repair.result
View file @
c43a3328
...
@@ -41,3 +41,14 @@ Table Op Msg_type Msg_text
...
@@ -41,3 +41,14 @@ Table Op Msg_type Msg_text
test.t1 repair warning Number of rows changed from 0 to 1
test.t1 repair warning Number of rows changed from 0 to 1
test.t1 repair status OK
test.t1 repair status OK
drop table t1;
drop table t1;
CREATE TABLE t1(a INT, KEY(a));
INSERT INTO t1 VALUES(1),(2),(3),(4),(5);
SET myisam_repair_threads=2;
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 1 a 1 a A 5 NULL NULL YES BTREE
SET myisam_repair_threads=@@global.myisam_repair_threads;
DROP TABLE t1;
mysql-test/t/mysqldump.test
View file @
c43a3328
...
@@ -1273,7 +1273,7 @@ drop database mysqldump_dbb;
...
@@ -1273,7 +1273,7 @@ drop database mysqldump_dbb;
use
test
;
use
test
;
# Create user without sufficient privs to perform the requested operation
# Create user without sufficient privs to perform the requested operation
create
user
mysqltest_1
;
create
user
mysqltest_1
@
localhost
;
create
table
t1
(
a
int
,
b
varchar
(
34
));
create
table
t1
(
a
int
,
b
varchar
(
34
));
# To get consistent output, reset the master, starts over from first log
# To get consistent output, reset the master, starts over from first log
...
@@ -1308,4 +1308,4 @@ grant REPLICATION CLIENT on *.* to mysqltest_1@localhost;
...
@@ -1308,4 +1308,4 @@ grant REPLICATION CLIENT on *.* to mysqltest_1@localhost;
# Clean up
# Clean up
drop
table
t1
;
drop
table
t1
;
drop
user
mysqltest_1
;
drop
user
mysqltest_1
@
localhost
;
mysql-test/t/repair.test
View file @
c43a3328
...
@@ -34,4 +34,15 @@ repair table t1;
...
@@ -34,4 +34,15 @@ repair table t1;
repair
table
t1
use_frm
;
repair
table
t1
use_frm
;
drop
table
t1
;
drop
table
t1
;
#
# BUG#18874 - Setting myisam_repair_threads > 1, index cardinality always 1
#
CREATE
TABLE
t1
(
a
INT
,
KEY
(
a
));
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
);
SET
myisam_repair_threads
=
2
;
REPAIR
TABLE
t1
;
SHOW
INDEX
FROM
t1
;
SET
myisam_repair_threads
=@@
global
.
myisam_repair_threads
;
DROP
TABLE
t1
;
# End of 4.1 tests
# End of 4.1 tests
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