Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
74d4eb53
Commit
74d4eb53
authored
Dec 22, 2000
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_show.cc added RAID_* options to SHOW CREATE output
parent
7e3fd8ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
sql/sql_show.cc
sql/sql_show.cc
+15
-9
No files found.
sql/sql_show.cc
View file @
74d4eb53
...
...
@@ -17,12 +17,12 @@
/* Function with list databases, tables or fields */
#undef USE_RAID
#define USE_RAID
#include "mysql_priv.h"
#include "sql_select.h" // For select_describe
#include "sql_acl.h"
#include <my_dir.h>
#undef USE_RAID
#define USE_RAID
#ifdef HAVE_BERKELEY_DB
#include "ha_berkeley.h" // For berkeley_show_logs
...
...
@@ -108,7 +108,7 @@ int mysqld_show_open_tables(THD *thd,const char *db,const char *wild)
if
(
send_fields
(
thd
,
field_list
,
1
))
DBUG_RETURN
(
1
);
if
(
list_open_tables
(
thd
,
&
tables
,
db
,
wild
))
DBUG_RETURN
(
-
1
);
...
...
@@ -889,13 +889,19 @@ store_create_info(THD *thd, TABLE *table, String *packet)
packet
->
append
(
" CHECKSUM=1"
,
11
);
if
(
table
->
db_create_options
&
HA_OPTION_DELAY_KEY_WRITE
)
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
)
{
packet
->
append
(
" COMMENT='"
,
10
);
append_unescaped
(
packet
,
table
->
comment
);
packet
->
append
(
'\''
);
}
{
packet
->
append
(
" COMMENT='"
,
10
);
append_unescaped
(
packet
,
table
->
comment
);
packet
->
append
(
'\''
);
}
DBUG_RETURN
(
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment