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
c8fbe938
Commit
c8fbe938
authored
Apr 20, 2001
by
monty@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed that database name is shown for CHECK TABLE
parent
528408c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
.bzrignore
.bzrignore
+1
-0
Docs/manual.texi
Docs/manual.texi
+6
-1
include/myisam.h
include/myisam.h
+3
-3
sql/ha_myisam.cc
sql/ha_myisam.cc
+13
-3
No files found.
.bzrignore
View file @
c8fbe938
...
...
@@ -247,3 +247,4 @@ bdb/dist/config.hin
innobase/ib_config.h
innobase/ib_config.h.in
mysql.proj
client/mysqlcheck
Docs/manual.texi
View file @
c8fbe938
...
...
@@ -43897,7 +43897,7 @@ users uses this code as the rest of the code and because of this we are
not yet 100% confident in this code.
@menu
* News-3.23.38::
* News-3.23.38::
Changes in release 3.23.38
* News-3.23.37:: Changes in release 3.23.37
* News-3.23.36:: Changes in release 3.23.36
* News-3.23.35:: Changes in release 3.23.35
...
...
@@ -43943,6 +43943,11 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.38
@itemize @bullet
@item
New program @code{mysqlcheck}.
@item
Added database name to output for admin commands like @code{CHECK},
@code{REPAIR}, @code{OPTIMIZE}.
@item
Lots of portability fixes for InnoDB.
@item
Changed optimizer so that queries like
include/myisam.h
View file @
c8fbe938
...
...
@@ -333,9 +333,9 @@ typedef struct st_mi_check_param
ulonglong
unique_count
[
MI_MAX_KEY_SEG
+
1
];
ha_checksum
key_crc
[
MI_MAX_POSSIBLE_KEY
];
ulong
rec_per_key_part
[
MI_MAX_KEY_SEG
*
MI_MAX_POSSIBLE_KEY
];
void
*
thd
;
char
*
table_name
;
char
*
op_name
;
void
*
thd
;
char
*
db_name
,
*
table_name
;
char
*
op_name
;
}
MI_CHECK
;
...
...
sql/ha_myisam.cc
View file @
c8fbe938
...
...
@@ -50,10 +50,12 @@ static void mi_check_print_msg(MI_CHECK *param, const char* msg_type,
{
THD
*
thd
=
(
THD
*
)
param
->
thd
;
String
*
packet
=
&
thd
->
packet
;
packet
->
length
(
0
)
;
uint
length
;
char
msgbuf
[
MI_MAX_MSG_BUF
];
msgbuf
[
0
]
=
0
;
char
name
[
NAME_LEN
*
2
+
2
];
packet
->
length
(
0
);
msgbuf
[
0
]
=
0
;
// healthy paranoia ?
my_vsnprintf
(
msgbuf
,
sizeof
(
msgbuf
),
fmt
,
args
);
msgbuf
[
sizeof
(
msgbuf
)
-
1
]
=
0
;
// healthy paranoia
...
...
@@ -70,9 +72,12 @@ static void mi_check_print_msg(MI_CHECK *param, const char* msg_type,
my_message
(
ER_NOT_KEYFILE
,
msgbuf
,
MYF
(
MY_WME
));
return
;
}
net_store_data
(
packet
,
param
->
table_name
);
length
=
(
uint
)
(
strxmov
(
name
,
param
->
db_name
,
"."
,
param
->
table_name
,
NullS
)
-
name
);
net_store_data
(
packet
,
name
,
length
);
net_store_data
(
packet
,
param
->
op_name
);
net_store_data
(
packet
,
msg_type
);
net_store_data
(
packet
,
msgbuf
);
if
(
my_net_write
(
&
thd
->
net
,
(
char
*
)
thd
->
packet
.
ptr
(),
thd
->
packet
.
length
()))
fprintf
(
stderr
,
...
...
@@ -245,6 +250,7 @@ int ha_myisam::check(THD* thd, HA_CHECK_OPT* check_opt)
myisamchk_init
(
&
param
);
param
.
thd
=
thd
;
param
.
op_name
=
(
char
*
)
"check"
;
param
.
db_name
=
table
->
table_cache_key
;
param
.
table_name
=
table
->
table_name
;
param
.
testflag
=
check_opt
->
flags
|
T_CHECK
|
T_SILENT
;
...
...
@@ -332,6 +338,7 @@ int ha_myisam::analyze(THD *thd, HA_CHECK_OPT* check_opt)
myisamchk_init
(
&
param
);
param
.
thd
=
thd
;
param
.
op_name
=
(
char
*
)
"analyze"
;
param
.
db_name
=
table
->
table_cache_key
;
param
.
table_name
=
table
->
table_name
;
param
.
testflag
=
(
T_FAST
|
T_CHECK
|
T_SILENT
|
T_STATISTICS
|
T_DONT_CHECK_CHECKSUM
);
...
...
@@ -384,6 +391,7 @@ int ha_myisam::restore(THD* thd, HA_CHECK_OPT *check_opt)
myisamchk_init
(
&
param
);
param
.
thd
=
thd
;
param
.
op_name
=
(
char
*
)
"restore"
;
param
.
db_name
=
table
->
table_cache_key
;
param
.
table_name
=
table
->
table_name
;
param
.
testflag
=
0
;
mi_check_print_error
(
&
param
,
errmsg
,
errno
);
...
...
@@ -438,6 +446,7 @@ int ha_myisam::backup(THD* thd, HA_CHECK_OPT *check_opt)
myisamchk_init
(
&
param
);
param
.
thd
=
thd
;
param
.
op_name
=
(
char
*
)
"backup"
;
param
.
db_name
=
table
->
table_cache_key
;
param
.
table_name
=
table
->
table_name
;
param
.
testflag
=
0
;
mi_check_print_error
(
&
param
,
errmsg
,
errno
);
...
...
@@ -524,6 +533,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
ha_rows
rows
=
file
->
state
->
records
;
DBUG_ENTER
(
"ha_myisam::repair"
);
param
.
db_name
=
table
->
table_cache_key
;
param
.
table_name
=
table
->
table_name
;
param
.
tmpfile_createflag
=
O_RDWR
|
O_TRUNC
;
param
.
using_global_keycache
=
1
;
...
...
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