diff options
author | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-09-25 16:44:53 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-09-25 16:44:53 +0500 |
commit | fe9f7980b7cb848c10368137d0c05dca2044f3d2 (patch) | |
tree | 768b7191e2bd33c795921a2f7d677a880bfe11b0 /mysys | |
parent | 54bb1045ca5fdcba99c3f8f8dfcb6a7139917614 (diff) | |
parent | feb9cc2f156de97233f345730a22c82ae51a0827 (diff) | |
download | mariadb-git-fe9f7980b7cb848c10368137d0c05dca2044f3d2.tar.gz |
Merge mysql.com:/home/hf/work/mysql-4.1.15428
into mysql.com:/home/hf/work/mysql-5.0-mrg
myisam/mi_check.c:
Auto merged
mysys/my_chsize.c:
Auto merged
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_chsize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/my_chsize.c b/mysys/my_chsize.c index 9760de29a08..fe0d0ffa607 100644 --- a/mysys/my_chsize.c +++ b/mysys/my_chsize.c @@ -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, 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)); if (oldsize > newlength) |