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
31d702dd
Commit
31d702dd
authored
Oct 22, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
parents
59698e06
6f02ea54
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
4 deletions
+22
-4
myisam/mi_check.c
myisam/mi_check.c
+4
-1
myisam/myisamchk.c
myisam/myisamchk.c
+4
-0
myisam/myisamdef.h
myisam/myisamdef.h
+1
-0
myisam/sort.c
myisam/sort.c
+6
-1
sql/ha_myisam.cc
sql/ha_myisam.cc
+7
-2
No files found.
myisam/mi_check.c
View file @
31d702dd
...
...
@@ -2508,7 +2508,7 @@ static int sort_key_read(MI_SORT_PARAM *sort_param, void *key)
DBUG_RETURN
(
1
);
}
sort_param
->
real_key_length
=
(
info
->
s
->
rec_reflength
+
(
info
->
s
->
rec_reflength
+
_mi_make_key
(
info
,
sort_param
->
key
,
(
uchar
*
)
key
,
sort_param
->
record
,
sort_param
->
filepos
));
#ifdef HAVE_purify
...
...
@@ -2587,6 +2587,9 @@ static int sort_get_next_record(MI_SORT_PARAM *sort_param)
char
llbuff
[
22
],
llbuff2
[
22
];
DBUG_ENTER
(
"sort_get_next_record"
);
if
(
*
killed_ptr
(
param
))
DBUG_RETURN
(
1
);
switch
(
share
->
data_file_type
)
{
case
STATIC_RECORD
:
for
(;;)
...
...
myisam/myisamchk.c
View file @
31d702dd
...
...
@@ -1636,6 +1636,10 @@ static int sort_record_index(MI_SORT_PARAM *sort_param,MI_INFO *info,
DBUG_RETURN
(
1
);
}
/* sort_record_index */
volatile
bool
*
killed_ptr
(
MI_CHECK
*
param
)
{
return
(
bool
*
)(
param
->
thd
);
/* always NULL */
}
/* print warnings and errors */
/* VARARGS */
...
...
myisam/myisamdef.h
View file @
31d702dd
...
...
@@ -648,6 +648,7 @@ void mi_setup_functions(register MYISAM_SHARE *share);
int
_mi_init_bulk_insert
(
MI_INFO
*
info
,
ulong
cache_size
);
/* Functions needed by mi_check */
volatile
bool
*
killed_ptr
(
MI_CHECK
*
param
);
void
mi_check_print_error
_VARARGS
((
MI_CHECK
*
param
,
const
char
*
fmt
,...));
void
mi_check_print_warning
_VARARGS
((
MI_CHECK
*
param
,
const
char
*
fmt
,...));
void
mi_check_print_info
_VARARGS
((
MI_CHECK
*
param
,
const
char
*
fmt
,...));
...
...
myisam/sort.c
View file @
31d702dd
...
...
@@ -284,7 +284,7 @@ pthread_handler_decl(thr_find_all_keys,arg)
uint
memavl
,
old_memavl
,
keys
,
sort_length
;
uint
idx
,
maxbuffer
;
uchar
**
sort_keys
=
0
;
error
=
1
;
if
(
my_thread_init
())
...
...
@@ -701,6 +701,7 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
uchar
*
strpos
;
BUFFPEK
*
buffpek
,
**
refpek
;
QUEUE
queue
;
volatile
bool
*
killed
=
killed_ptr
(
info
->
sort_info
->
param
);
DBUG_ENTER
(
"merge_buffers"
);
count
=
error
=
0
;
...
...
@@ -732,6 +733,10 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
{
for
(;;)
{
if
(
*
killed
)
{
error
=
1
;
goto
err
;
}
buffpek
=
(
BUFFPEK
*
)
queue_top
(
&
queue
);
if
(
to_file
)
{
...
...
sql/ha_myisam.cc
View file @
31d702dd
...
...
@@ -87,6 +87,11 @@ static void mi_check_print_msg(MI_CHECK *param, const char* msg_type,
extern
"C"
{
volatile
bool
*
killed_ptr
(
MI_CHECK
*
param
)
{
return
&
(((
THD
*
)(
param
->
thd
))
->
killed
);
}
void
mi_check_print_error
(
MI_CHECK
*
param
,
const
char
*
fmt
,...)
{
param
->
error_printed
|=
1
;
...
...
@@ -571,7 +576,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
}
if
(
!
optimize
||
memcmp
(
file
->
state
,
&
share
->
state
.
state
,
sizeof
(
MI_STATUS_INFO
))
||
//
memcmp(file->state, & share->state.state, sizeof(MI_STATUS_INFO)) ||
((
file
->
state
->
del
||
share
->
state
.
split
!=
file
->
state
->
records
)
&&
(
!
(
param
.
testflag
&
T_QUICK
)
||
!
(
share
->
state
.
changed
&
STATE_NOT_OPTIMIZED_KEYS
))))
...
...
@@ -630,7 +635,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
STATE_CRASHED_ON_REPAIR
);
file
->
update
|=
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
;
}
file
->
save_state
=
file
->
s
->
state
.
state
;
//
file->save_state=file->s->state.state;
if
(
file
->
s
->
base
.
auto_key
)
update_auto_increment_key
(
&
param
,
file
,
1
);
if
(
optimize_done
)
...
...
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