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
d9a008d9
Commit
d9a008d9
authored
Jan 25, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0
into zim.tangent.org:/home/brian/mysql/mysql-5.0
parents
0ab30e24
6b2718d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
sql/ha_archive.cc
sql/ha_archive.cc
+8
-11
No files found.
sql/ha_archive.cc
View file @
d9a008d9
...
...
@@ -477,7 +477,7 @@ const char **ha_archive::bas_ext() const
Init out lock.
We open the file we will read from.
*/
int
ha_archive
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
int
ha_archive
::
open
(
const
char
*
name
,
int
mode
,
uint
open_options
)
{
DBUG_ENTER
(
"ha_archive::open"
);
...
...
@@ -492,7 +492,10 @@ int ha_archive::open(const char *name, int mode, uint test_if_locked)
DBUG_RETURN
(
HA_ERR_CRASHED_ON_USAGE
);
}
if
(
open_options
&
HA_OPEN_FOR_REPAIR
)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
share
->
crashed
?
HA_ERR_CRASHED_ON_USAGE
:
0
);
}
...
...
@@ -1067,7 +1070,8 @@ int ha_archive::delete_all_rows()
*/
bool
ha_archive
::
is_crashed
()
const
{
return
share
->
crashed
;
DBUG_ENTER
(
"ha_archive::is_crashed"
);
DBUG_RETURN
(
share
->
crashed
);
}
/*
...
...
@@ -1129,13 +1133,6 @@ bool ha_archive::check_and_repair(THD *thd)
check_opt
.
init
();
if
(
check
(
thd
,
&
check_opt
)
==
HA_ADMIN_CORRUPT
)
{
DBUG_RETURN
(
repair
(
thd
,
&
check_opt
));
}
else
{
DBUG_RETURN
(
HA_ADMIN_OK
);
}
}
#endif
/* HAVE_ARCHIVE_DB */
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