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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a94401ba
Commit
a94401ba
authored
Feb 01, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
parents
47045937
f1be4063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+14
-7
No files found.
storage/archive/ha_archive.cc
View file @
a94401ba
...
...
@@ -627,13 +627,20 @@ int ha_archive::create(const char *name, TABLE *table_arg,
/*
Here is where we open up the frm and pass it to archive to store
*/
frm_file
=
my_open
(
name_buff
,
O_RDONLY
,
MYF
(
0
));
VOID
(
my_fstat
(
frm_file
,
&
file_stat
,
MYF
(
MY_WME
)));
frm_ptr
=
(
byte
*
)
my_malloc
(
sizeof
(
byte
)
*
file_stat
.
st_size
,
MYF
(
0
));
my_read
(
frm_file
,
frm_ptr
,
file_stat
.
st_size
,
MYF
(
0
));
azwrite_frm
(
&
create_stream
,
(
char
*
)
frm_ptr
,
file_stat
.
st_size
);
my_close
(
frm_file
,
MYF
(
0
));
my_free
((
gptr
)
frm_ptr
,
MYF
(
0
));
if
((
frm_file
=
my_open
(
name_buff
,
O_RDONLY
,
MYF
(
0
)))
>
0
)
{
if
(
!
my_fstat
(
frm_file
,
&
file_stat
,
MYF
(
MY_WME
)))
{
frm_ptr
=
(
byte
*
)
my_malloc
(
sizeof
(
byte
)
*
file_stat
.
st_size
,
MYF
(
0
));
if
(
frm_ptr
)
{
my_read
(
frm_file
,
frm_ptr
,
file_stat
.
st_size
,
MYF
(
0
));
azwrite_frm
(
&
create_stream
,
(
char
*
)
frm_ptr
,
file_stat
.
st_size
);
my_free
((
gptr
)
frm_ptr
,
MYF
(
0
));
}
}
my_close
(
frm_file
,
MYF
(
0
));
}
if
(
create_info
->
comment
.
str
)
azwrite_comment
(
&
create_stream
,
create_info
->
comment
.
str
,
...
...
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