From 20031c62735f9b52420b54e2c66c7eeeccd7044f Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 25 Sep 2013 19:42:22 +0200 Subject: Enable TokuDB online ALTER sql/create_options.cc: an utility function to compare two filled-in engine_option structures sql/sql_table.cc: * two keys are different if their option_struct's differ (for ALTER TABLE DROP key, ADD key) * engines doing inplace alter must see the new frm image --- sql/create_options.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sql/create_options.h') diff --git a/sql/create_options.h b/sql/create_options.h index c7fac8b37fd..d6b48822c49 100644 --- a/sql/create_options.h +++ b/sql/create_options.h @@ -96,4 +96,7 @@ uchar *engine_table_options_frm_image(uchar *buff, engine_option_value *table_option_list, List &create_fields, uint keys, KEY *key_info); + +bool engine_options_differ(void *old_struct, void *new_struct, + ha_create_table_option *rules); #endif -- cgit v1.2.1