Skip to content

Commit

Permalink
Removed not used function maria_clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi committed May 22, 2019
1 parent 2faa7dc commit 0b9f7f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion include/maria.h
Expand Up @@ -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,
Expand Down
14 changes: 0 additions & 14 deletions storage/maria/ma_open.c
Expand Up @@ -249,20 +249,6 @@ static MARIA_HA *maria_clone_internal(MARIA_SHARE *share,
} /* 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
Expand Down

0 comments on commit 0b9f7f8

Please sign in to comment.