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
33f84cf8
Commit
33f84cf8
authored
Jun 28, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in REPAIR table.
Portability fix in safemalloc.c
parent
ade20c5b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
5 deletions
+54
-5
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+0
-2
myisam/sort.c
myisam/sort.c
+1
-1
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+22
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+27
-0
mysys/safemalloc.c
mysys/safemalloc.c
+4
-2
No files found.
libmysqld/lib_sql.cc
View file @
33f84cf8
...
@@ -24,10 +24,8 @@
...
@@ -24,10 +24,8 @@
#define main main1
#define main main1
#define mysql_unix_port mysql_inix_port1
#define mysql_unix_port mysql_inix_port1
#define mysql_port mysql_port1
#define mysql_port mysql_port1
#if !defined(__WIN__)
#define net_read_timeout net_read_timeout1
#define net_read_timeout net_read_timeout1
#define net_write_timeout net_write_timeout1
#define net_write_timeout net_write_timeout1
#endif
#define changeable_vars changeable_vars1
#define changeable_vars changeable_vars1
extern
"C"
extern
"C"
...
...
myisam/sort.c
View file @
33f84cf8
...
@@ -701,7 +701,7 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
...
@@ -701,7 +701,7 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
if
(
init_queue
(
&
queue
,(
uint
)
(
Tb
-
Fb
)
+
1
,
offsetof
(
BUFFPEK
,
key
),
0
,
if
(
init_queue
(
&
queue
,(
uint
)
(
Tb
-
Fb
)
+
1
,
offsetof
(
BUFFPEK
,
key
),
0
,
(
int
(
*
)(
void
*
,
byte
*
,
byte
*
))
info
->
key_cmp
,
(
int
(
*
)(
void
*
,
byte
*
,
byte
*
))
info
->
key_cmp
,
(
void
*
)
info
->
sort_info
))
(
void
*
)
info
))
DBUG_RETURN
(
1
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
for
(
buffpek
=
Fb
;
buffpek
<=
Tb
;
buffpek
++
)
for
(
buffpek
=
Fb
;
buffpek
<=
Tb
;
buffpek
++
)
...
...
mysql-test/r/myisam.result
View file @
33f84cf8
...
@@ -75,3 +75,25 @@ explain select a,b,c from t1;
...
@@ -75,3 +75,25 @@ explain select a,b,c from t1;
table type possible_keys key key_len ref rows Extra
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
t1 ALL NULL NULL NULL NULL 4
drop table t1;
drop table t1;
CREATE TABLE `t1` (
`post_id` mediumint(8) unsigned NOT NULL auto_increment,
`topic_id` mediumint(8) unsigned NOT NULL default '0',
`post_time` datetime NOT NULL default '0000-00-00 00:00:00',
`post_text` text NOT NULL,
`icon_url` varchar(10) NOT NULL default '',
`sign` tinyint(1) unsigned NOT NULL default '0',
`post_edit` varchar(150) NOT NULL default '',
`poster_login` varchar(35) NOT NULL default '',
`ip` varchar(15) NOT NULL default '',
PRIMARY KEY (`post_id`),
KEY `post_time` (`post_time`),
KEY `ip` (`ip`),
KEY `poster_login` (`poster_login`),
KEY `topic_id` (`topic_id`),
FULLTEXT KEY `post_text` (`post_text`)
) TYPE=MyISAM;
INSERT INTO t1 (post_text) VALUES ('ceci est un test'),('ceci est un test'),('ceci est un test'),('ceci est un test'),('ceci est un test');
REPAIR TABLE t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
drop table t1;
mysql-test/t/myisam.test
View file @
33f84cf8
...
@@ -66,3 +66,30 @@ explain select a,b from t1 order by b;
...
@@ -66,3 +66,30 @@ explain select a,b from t1 order by b;
explain
select
a
,
b
from
t1
;
explain
select
a
,
b
from
t1
;
explain
select
a
,
b
,
c
from
t1
;
explain
select
a
,
b
,
c
from
t1
;
drop
table
t1
;
drop
table
t1
;
#
# Test of REPAIR that once failed
#
CREATE
TABLE
`t1`
(
`post_id`
mediumint
(
8
)
unsigned
NOT
NULL
auto_increment
,
`topic_id`
mediumint
(
8
)
unsigned
NOT
NULL
default
'0'
,
`post_time`
datetime
NOT
NULL
default
'0000-00-00 00:00:00'
,
`post_text`
text
NOT
NULL
,
`icon_url`
varchar
(
10
)
NOT
NULL
default
''
,
`sign`
tinyint
(
1
)
unsigned
NOT
NULL
default
'0'
,
`post_edit`
varchar
(
150
)
NOT
NULL
default
''
,
`poster_login`
varchar
(
35
)
NOT
NULL
default
''
,
`ip`
varchar
(
15
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
`post_id`
),
KEY
`post_time`
(
`post_time`
),
KEY
`ip`
(
`ip`
),
KEY
`poster_login`
(
`poster_login`
),
KEY
`topic_id`
(
`topic_id`
),
FULLTEXT
KEY
`post_text`
(
`post_text`
)
)
TYPE
=
MyISAM
;
INSERT
INTO
t1
(
post_text
)
VALUES
(
'ceci est un test'
),(
'ceci est un test'
),(
'ceci est un test'
),(
'ceci est un test'
),(
'ceci est un test'
);
REPAIR
TABLE
t1
;
drop
table
t1
;
mysys/safemalloc.c
View file @
33f84cf8
...
@@ -379,8 +379,10 @@ static int check_ptr(const char *where, byte *ptr, const char *sFile,
...
@@ -379,8 +379,10 @@ static int check_ptr(const char *where, byte *ptr, const char *sFile,
static
int
legal_leak
(
struct
remember
*
pPtr
)
static
int
legal_leak
(
struct
remember
*
pPtr
)
{
{
/* TODO: This code needs to be made more general */
/* TODO: This code needs to be made more general */
return
(
pthread_self
()
==
pPtr
->
thread_id
||
main_th
==
pPtr
->
thread_id
||
return
(
pthread_equal
(
pthread_self
(),
pPtr
->
thread_id
)
||
shutdown_th
==
pPtr
->
thread_id
||
signal_th
==
pPtr
->
thread_id
);
pthread_equal
(
main_th
,
pPtr
->
thread_id
)
||
pthread_equal
(
shutdown_th
,
pPtr
->
thread_id
)
||
pthread_equal
(
signal_th
,
pPtr
->
thread_id
));
}
}
#endif
/* THREAD */
#endif
/* THREAD */
...
...
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