mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Removed need for storage engines to write a default external_lock() call.
This commit is contained in:
parent
86618a129d
commit
75b4c32c8e
3 changed files with 1 additions and 11 deletions
|
@ -828,15 +828,6 @@ int ha_archive::optimize(THD* thd, HA_CHECK_OPT* check_opt)
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
No transactions yet, so this is pretty dull.
|
||||
*/
|
||||
int ha_archive::external_lock(THD *thd, int lock_type)
|
||||
{
|
||||
DBUG_ENTER("ha_archive::external_lock");
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
/*
|
||||
Below is an example of how to setup row level locking.
|
||||
*/
|
||||
|
|
|
@ -96,7 +96,6 @@ public:
|
|||
int write_data_header(gzFile file_to_write);
|
||||
void position(const byte *record);
|
||||
void info(uint);
|
||||
int external_lock(THD *thd, int lock_type);
|
||||
int create(const char *name, TABLE *form, HA_CREATE_INFO *create_info);
|
||||
int optimize(THD* thd, HA_CHECK_OPT* check_opt);
|
||||
void start_bulk_insert(ha_rows rows);
|
||||
|
|
|
@ -449,7 +449,7 @@ public:
|
|||
virtual int extra_opt(enum ha_extra_function operation, ulong cache_size)
|
||||
{ return extra(operation); }
|
||||
virtual int reset() { return extra(HA_EXTRA_RESET); }
|
||||
virtual int external_lock(THD *thd, int lock_type)=0;
|
||||
virtual int external_lock(THD *thd, int lock_type) { return 0; }
|
||||
virtual void unlock_row() {}
|
||||
virtual int start_stmt(THD *thd) {return 0;}
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue