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
5cf9db53
Commit
5cf9db53
authored
Feb 13, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler warning fixed
parent
bee40ef1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+9
-13
No files found.
storage/maria/ha_maria.cc
View file @
5cf9db53
...
@@ -1475,12 +1475,8 @@ int ha_maria::assign_to_keycache(THD * thd, HA_CHECK_OPT *check_opt)
...
@@ -1475,12 +1475,8 @@ int ha_maria::assign_to_keycache(THD * thd, HA_CHECK_OPT *check_opt)
int
ha_maria
::
preload_keys
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
int
ha_maria
::
preload_keys
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
{
{
int
error
;
const
char
*
errmsg
;
ulonglong
map
;
ulonglong
map
;
TABLE_LIST
*
table_list
=
table
->
pos_in_table_list
;
TABLE_LIST
*
table_list
=
table
->
pos_in_table_list
;
my_bool
ignore_leaves
=
table_list
->
ignore_leaves
;
char
buf
[
ERRMSGSIZE
+
20
];
DBUG_ENTER
(
"ha_maria::preload_keys"
);
DBUG_ENTER
(
"ha_maria::preload_keys"
);
...
@@ -1499,8 +1495,13 @@ int ha_maria::preload_keys(THD * thd, HA_CHECK_OPT *check_opt)
...
@@ -1499,8 +1495,13 @@ int ha_maria::preload_keys(THD * thd, HA_CHECK_OPT *check_opt)
(
void
*
)
&
thd
->
variables
.
preload_buff_size
);
(
void
*
)
&
thd
->
variables
.
preload_buff_size
);
#ifdef NOT_YET
#ifdef NOT_YET
if
((
error
=
maria_preload
(
file
,
map
,
ignore_leaves
)))
int
error
;
if
((
error
=
maria_preload
(
file
,
map
,
table_list
->
ignore_leaves
)))
{
{
char
buf
[
ERRMSGSIZE
+
20
];
const
char
*
errmsg
;
switch
(
error
)
{
switch
(
error
)
{
case
HA_ERR_NON_UNIQUE_BLOCK_SIZE
:
case
HA_ERR_NON_UNIQUE_BLOCK_SIZE
:
errmsg
=
"Indexes use different block sizes"
;
errmsg
=
"Indexes use different block sizes"
;
...
@@ -1513,14 +1514,7 @@ int ha_maria::preload_keys(THD * thd, HA_CHECK_OPT *check_opt)
...
@@ -1513,14 +1514,7 @@ int ha_maria::preload_keys(THD * thd, HA_CHECK_OPT *check_opt)
"Failed to read from index file (errno: %d)"
,
my_errno
);
"Failed to read from index file (errno: %d)"
,
my_errno
);
errmsg
=
buf
;
errmsg
=
buf
;
}
}
error
=
HA_ADMIN_FAILED
;
goto
err
;
}
#endif
DBUG_RETURN
(
HA_ADMIN_OK
);
err:
{
HA_CHECK
param
;
HA_CHECK
param
;
maria_chk_init
(
&
param
);
maria_chk_init
(
&
param
);
param
.
thd
=
thd
;
param
.
thd
=
thd
;
...
@@ -1529,8 +1523,10 @@ err:
...
@@ -1529,8 +1523,10 @@ err:
param
.
table_name
=
table
->
s
->
table_name
.
str
;
param
.
table_name
=
table
->
s
->
table_name
.
str
;
param
.
testflag
=
0
;
param
.
testflag
=
0
;
_ma_check_print_error
(
&
param
,
errmsg
);
_ma_check_print_error
(
&
param
,
errmsg
);
DBUG_RETURN
(
error
);
DBUG_RETURN
(
HA_ADMIN_FAILED
);
}
}
#endif
DBUG_RETURN
(
HA_ADMIN_OK
);
}
}
...
...
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