Commit e94ec730 authored by unknown's avatar unknown

sql_show.cc added RAID_* options to SHOW CREATE output


sql/sql_show.cc:
  added RAID_* options to SHOW CREATE output
parent 3891d331
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
/* Function with list databases, tables or fields */ /* Function with list databases, tables or fields */
#undef USE_RAID
#define USE_RAID
#include "mysql_priv.h" #include "mysql_priv.h"
#include "sql_select.h" // For select_describe #include "sql_select.h" // For select_describe
#include "sql_acl.h" #include "sql_acl.h"
#include <my_dir.h> #include <my_dir.h>
#undef USE_RAID
#define USE_RAID
#ifdef HAVE_BERKELEY_DB #ifdef HAVE_BERKELEY_DB
#include "ha_berkeley.h" // For berkeley_show_logs #include "ha_berkeley.h" // For berkeley_show_logs
...@@ -889,6 +889,13 @@ store_create_info(THD *thd, TABLE *table, String *packet) ...@@ -889,6 +889,13 @@ store_create_info(THD *thd, TABLE *table, String *packet)
packet->append(" CHECKSUM=1", 11); packet->append(" CHECKSUM=1", 11);
if (table->db_create_options & HA_OPTION_DELAY_KEY_WRITE) if (table->db_create_options & HA_OPTION_DELAY_KEY_WRITE)
packet->append(" DELAY_KEY_WRITE=1",18); packet->append(" DELAY_KEY_WRITE=1",18);
if (file->raid_type)
{
char buff[100];
sprintf(buff," RAID_TYPE=%s RAID_CHUNKS=%d RAID_CHUNKSIZE=%ld",
my_raid_type(file->raid_type), file->raid_chunks, file->raid_chunksize/RAID_BLOCK_SIZE);
packet->append(buff);
}
if(table->comment) if(table->comment)
{ {
packet->append(" COMMENT='", 10); packet->append(" COMMENT='", 10);
...@@ -896,7 +903,6 @@ store_create_info(THD *thd, TABLE *table, String *packet) ...@@ -896,7 +903,6 @@ store_create_info(THD *thd, TABLE *table, String *packet)
packet->append('\''); packet->append('\'');
} }
DBUG_RETURN(0); DBUG_RETURN(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment