mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
This removes the passing of global hton to engine instance.
sql/ha_ndbcluster.cc: Removed global hton sql/ha_ndbcluster.h: Removed global hton need sql/ha_partition.cc: Removed global hton sql/ha_partition.h: Removed global hton sql/handler.cc: Removed global hton sql/handler.h: Removed global hton storage/archive/ha_archive.cc: Removed global hton storage/archive/ha_archive.h: Global hton removed storage/blackhole/ha_blackhole.cc: Global removed hton storage/blackhole/ha_blackhole.h: Global hton removal storage/csv/ha_tina.cc: Global hton removal storage/csv/ha_tina.h: Removed global removed storage/example/ha_example.cc: Global removed hton storage/example/ha_example.h: Global removed hton storage/federated/ha_federated.cc: Global removed hton storage/federated/ha_federated.h: Global removed hton storage/heap/ha_heap.cc: Global removed hton storage/heap/ha_heap.h: Global removed hton storage/innobase/handler/ha_innodb.cc: Global removed hton storage/innobase/handler/ha_innodb.h: Removed global hton storage/myisam/ha_myisam.cc: Globally removed hton storage/myisam/ha_myisam.h: Globally removed hton storage/myisammrg/ha_myisammrg.cc: Globally removed hton storage/myisammrg/ha_myisammrg.h: Globaly removed hton
This commit is contained in:
@@ -73,7 +73,9 @@
|
||||
|
||||
#include <mysql/plugin.h>
|
||||
|
||||
static handler *example_create_handler(TABLE_SHARE *table, MEM_ROOT *mem_root);
|
||||
static handler *example_create_handler(handlerton *hton,
|
||||
TABLE_SHARE *table,
|
||||
MEM_ROOT *mem_root);
|
||||
static int example_init_func();
|
||||
static bool example_init_func_for_handlerton();
|
||||
static int example_panic(enum ha_panic_function flag);
|
||||
@@ -201,14 +203,16 @@ static int free_share(EXAMPLE_SHARE *share)
|
||||
}
|
||||
|
||||
|
||||
static handler* example_create_handler(TABLE_SHARE *table, MEM_ROOT *mem_root)
|
||||
static handler* example_create_handler(handlerton *hton,
|
||||
TABLE_SHARE *table,
|
||||
MEM_ROOT *mem_root)
|
||||
{
|
||||
return new (mem_root) ha_example(table);
|
||||
return new (mem_root) ha_example(hton, table);
|
||||
}
|
||||
|
||||
|
||||
ha_example::ha_example(TABLE_SHARE *table_arg)
|
||||
:handler(example_hton, table_arg)
|
||||
ha_example::ha_example(handlerton *hton, TABLE_SHARE *table_arg)
|
||||
:handler(hton, table_arg)
|
||||
{}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user