summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-06-24 14:31:49 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-06-24 14:31:49 +0300
commit6ffaed615a0117dd4ad8c1b209138650d9000ec2 (patch)
tree78e11835ac18856494ca2ef1c4c04021da98ffc2
parentddeeb42e0b1adc2158fa0baec70d84a0ae3e5828 (diff)
downloadmariadb-git-6ffaed615a0117dd4ad8c1b209138650d9000ec2.tar.gz
Remove the unused function maria_clone
-rw-r--r--include/maria.h3
-rw-r--r--storage/maria/ma_open.c15
2 files changed, 2 insertions, 16 deletions
diff --git a/include/maria.h b/include/maria.h
index cbc03687f1d..c53ae472c46 100644
--- a/include/maria.h
+++ b/include/maria.h
@@ -1,5 +1,5 @@
/* Copyright (C) 2006-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc.
- Copyright (c) 2009, 2013, Monty Program Ab.
+ Copyright (c) 2009, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -286,7 +286,6 @@ extern int maria_close(MARIA_HA *file);
extern int maria_delete(MARIA_HA *file, const uchar *buff);
extern MARIA_HA *maria_open(const char *name, int mode,
uint wait_if_locked);
-extern MARIA_HA *maria_clone(struct st_maria_share *share, int mode);
extern int maria_panic(enum ha_panic_function function);
extern int maria_rfirst(MARIA_HA *file, uchar *buf, int inx);
extern int maria_rkey(MARIA_HA *file, uchar *buf, int inx,
diff --git a/storage/maria/ma_open.c b/storage/maria/ma_open.c
index 09468188c27..52b94162a6b 100644
--- a/storage/maria/ma_open.c
+++ b/storage/maria/ma_open.c
@@ -1,4 +1,5 @@
/* Copyright (C) 2006 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+ Copyright (c) 2009, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -249,20 +250,6 @@ err:
} /* maria_clone_internal */
-/* Make a clone of a maria table */
-
-MARIA_HA *maria_clone(MARIA_SHARE *share, int mode)
-{
- MARIA_HA *new_info;
- mysql_mutex_lock(&THR_LOCK_maria);
- new_info= maria_clone_internal(share, mode,
- share->data_file_type == BLOCK_RECORD ?
- share->bitmap.file.file : -1, 0);
- mysql_mutex_unlock(&THR_LOCK_maria);
- return new_info;
-}
-
-
/******************************************************************************
open a MARIA table