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
f8eeebbc
Commit
f8eeebbc
authored
Sep 25, 2006
by
holyfoot/hf@mysql.com/deer.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/hf/work/mysql-4.1.15428
into mysql.com:/home/hf/work/mysql-5.0-mrg
parents
2e2c5a20
14b16d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
myisam/mi_check.c
myisam/mi_check.c
+6
-3
mysys/my_chsize.c
mysys/my_chsize.c
+3
-1
No files found.
myisam/mi_check.c
View file @
f8eeebbc
...
@@ -1370,7 +1370,8 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
...
@@ -1370,7 +1370,8 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
param
->
temp_filename
);
param
->
temp_filename
);
goto
err
;
goto
err
;
}
}
if
(
filecopy
(
param
,
new_file
,
info
->
dfile
,
0L
,
new_header_length
,
if
(
new_header_length
&&
filecopy
(
param
,
new_file
,
info
->
dfile
,
0L
,
new_header_length
,
"datafile-header"
))
"datafile-header"
))
goto
err
;
goto
err
;
info
->
s
->
state
.
dellink
=
HA_OFFSET_ERROR
;
info
->
s
->
state
.
dellink
=
HA_OFFSET_ERROR
;
...
@@ -2072,7 +2073,8 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
...
@@ -2072,7 +2073,8 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
param
->
temp_filename
);
param
->
temp_filename
);
goto
err
;
goto
err
;
}
}
if
(
filecopy
(
param
,
new_file
,
info
->
dfile
,
0L
,
new_header_length
,
if
(
new_header_length
&&
filecopy
(
param
,
new_file
,
info
->
dfile
,
0L
,
new_header_length
,
"datafile-header"
))
"datafile-header"
))
goto
err
;
goto
err
;
if
(
param
->
testflag
&
T_UNPACK
)
if
(
param
->
testflag
&
T_UNPACK
)
...
@@ -2440,7 +2442,8 @@ int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
...
@@ -2440,7 +2442,8 @@ int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
param
->
temp_filename
);
param
->
temp_filename
);
goto
err
;
goto
err
;
}
}
if
(
filecopy
(
param
,
new_file
,
info
->
dfile
,
0L
,
new_header_length
,
if
(
new_header_length
&&
filecopy
(
param
,
new_file
,
info
->
dfile
,
0L
,
new_header_length
,
"datafile-header"
))
"datafile-header"
))
goto
err
;
goto
err
;
if
(
param
->
testflag
&
T_UNPACK
)
if
(
param
->
testflag
&
T_UNPACK
)
...
...
mysys/my_chsize.c
View file @
f8eeebbc
...
@@ -46,7 +46,9 @@ int my_chsize(File fd, my_off_t newlength, int filler, myf MyFlags)
...
@@ -46,7 +46,9 @@ int my_chsize(File fd, my_off_t newlength, int filler, myf MyFlags)
DBUG_PRINT
(
"my"
,(
"fd: %d length: %lu MyFlags: %d"
,
fd
,(
ulong
)
newlength
,
DBUG_PRINT
(
"my"
,(
"fd: %d length: %lu MyFlags: %d"
,
fd
,(
ulong
)
newlength
,
MyFlags
));
MyFlags
));
oldsize
=
my_seek
(
fd
,
0L
,
MY_SEEK_END
,
MYF
(
MY_WME
+
MY_FAE
));
if
((
oldsize
=
my_seek
(
fd
,
0L
,
MY_SEEK_END
,
MYF
(
MY_WME
+
MY_FAE
)))
==
newlength
)
DBUG_RETURN
(
0
);
DBUG_PRINT
(
"info"
,(
"old_size: %ld"
,
(
ulong
)
oldsize
));
DBUG_PRINT
(
"info"
,(
"old_size: %ld"
,
(
ulong
)
oldsize
));
if
(
oldsize
>
newlength
)
if
(
oldsize
>
newlength
)
...
...
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