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
6b3e3b03
Commit
6b3e3b03
authored
Apr 28, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/bug9911
into neptunus.(none):/home/msvensson/mysql/mysql-4.1
parents
bdb1441a
9969e1c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
30 deletions
+9
-30
sql/examples/ha_archive.cc
sql/examples/ha_archive.cc
+0
-24
sql/examples/ha_archive.h
sql/examples/ha_archive.h
+0
-1
sql/handler.cc
sql/handler.cc
+9
-5
No files found.
sql/examples/ha_archive.cc
View file @
6b3e3b03
...
@@ -427,30 +427,6 @@ const char **ha_archive::bas_ext() const
...
@@ -427,30 +427,6 @@ const char **ha_archive::bas_ext() const
{
static
const
char
*
ext
[]
=
{
ARZ
,
ARN
,
ARM
,
NullS
};
return
ext
;
}
{
static
const
char
*
ext
[]
=
{
ARZ
,
ARN
,
ARM
,
NullS
};
return
ext
;
}
/*
Rename all files that this handler defines in bas_ext list
NOTE Don't care if the .arn file is missing
*/
int
ha_archive
::
rename_table
(
const
char
*
from
,
const
char
*
to
)
{
DBUG_ENTER
(
"ha_archive::rename_table"
);
for
(
const
char
**
ext
=
bas_ext
();
*
ext
;
ext
++
)
{
if
(
rename_file_ext
(
from
,
to
,
*
ext
))
{
if
(
my_errno
==
ENOENT
&&
!
my_strcasecmp
(
system_charset_info
,
*
ext
,
ARN
))
continue
;
DBUG_RETURN
(
my_errno
);
}
}
DBUG_RETURN
(
0
);
}
/*
/*
When opening a file we:
When opening a file we:
Create/get our shared structure.
Create/get our shared structure.
...
...
sql/examples/ha_archive.h
View file @
6b3e3b03
...
@@ -124,7 +124,6 @@ public:
...
@@ -124,7 +124,6 @@ public:
int
optimize
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
);
int
optimize
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
);
THR_LOCK_DATA
**
store_lock
(
THD
*
thd
,
THR_LOCK_DATA
**
to
,
THR_LOCK_DATA
**
store_lock
(
THD
*
thd
,
THR_LOCK_DATA
**
to
,
enum
thr_lock_type
lock_type
);
enum
thr_lock_type
lock_type
);
int
rename_table
(
const
char
*
from
,
const
char
*
to
);
};
};
bool
archive_db_init
(
void
);
bool
archive_db_init
(
void
);
...
...
sql/handler.cc
View file @
6b3e3b03
...
@@ -1255,13 +1255,17 @@ int handler::delete_table(const char *name)
...
@@ -1255,13 +1255,17 @@ int handler::delete_table(const char *name)
int
handler
::
rename_table
(
const
char
*
from
,
const
char
*
to
)
int
handler
::
rename_table
(
const
char
*
from
,
const
char
*
to
)
{
{
DBUG_ENTER
(
"handler::rename_table"
)
;
int
error
=
0
;
for
(
const
char
**
ext
=
bas_ext
();
*
ext
;
ext
++
)
for
(
const
char
**
ext
=
bas_ext
();
*
ext
;
ext
++
)
{
{
if
(
rename_file_ext
(
from
,
to
,
*
ext
))
if
(
rename_file_ext
(
from
,
to
,
*
ext
))
DBUG_RETURN
(
my_errno
);
{
if
((
error
=
my_errno
)
!=
ENOENT
)
break
;
error
=
0
;
}
}
}
DBUG_RETURN
(
0
)
;
return
error
;
}
}
/*
/*
...
...
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