summaryrefslogtreecommitdiff
path: root/sql/examples/ha_archive.cc
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-04-28 10:49:18 +0200
committerunknown <msvensson@neptunus.(none)>2005-04-28 10:49:18 +0200
commitd8220f5688c2afecad7537d0029946b2586a2aee (patch)
treef70f9f5f7510bf1baacdcba689ce81f375b7d7e5 /sql/examples/ha_archive.cc
parent6afb3ef47b27ce1faa178a711dcbc212cb83f573 (diff)
downloadmariadb-git-d8220f5688c2afecad7537d0029946b2586a2aee.tar.gz
BUG#9911 After review fixes
- Remove ha_archive::rename_table and move the fix to handler::rename_table sql/examples/ha_archive.cc: Remove ha_archive::rename_table sql/examples/ha_archive.h: Remove ha_archive::rename_table sql/handler.cc: Fix handler::rename_table so it does not care about if the file to rename is missing
Diffstat (limited to 'sql/examples/ha_archive.cc')
-rw-r--r--sql/examples/ha_archive.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc
index 0e1df45a70b..bc4af0c7dc7 100644
--- a/sql/examples/ha_archive.cc
+++ b/sql/examples/ha_archive.cc
@@ -427,30 +427,6 @@ const char **ha_archive::bas_ext() const
{ 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:
Create/get our shared structure.