diff options
author | unknown <brian@avenger.(none)> | 2004-12-06 00:55:58 -0800 |
---|---|---|
committer | unknown <brian@avenger.(none)> | 2004-12-06 00:55:58 -0800 |
commit | 9740a87671a209340dc1d0a7f1ab05f23e4f9de5 (patch) | |
tree | 9c2ee4ea4ada67ea3c6c6e39e01848b7717130e8 /sql/examples | |
parent | bbdb2d28f10146353a8780bf03fd83ba742aa7d1 (diff) | |
download | mariadb-git-9740a87671a209340dc1d0a7f1ab05f23e4f9de5.tar.gz |
Removed need for storage engines to write a default external_lock() call.
sql/examples/ha_archive.cc:
Removed external_lock call (no longer needed, we can now use the default).
sql/examples/ha_archive.h:
No need for an external_lock() call.
sql/handler.h:
Added default return value for external_lock().
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.cc | 9 | ||||
-rw-r--r-- | sql/examples/ha_archive.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc index 3217327dc3d..3f176da1c7f 100644 --- a/sql/examples/ha_archive.cc +++ b/sql/examples/ha_archive.cc @@ -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. */ diff --git a/sql/examples/ha_archive.h b/sql/examples/ha_archive.h index 856513b0f92..809f52a883b 100644 --- a/sql/examples/ha_archive.h +++ b/sql/examples/ha_archive.h @@ -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); |