diff options
author | unknown <jimw@mysql.com> | 2005-08-15 12:37:45 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-08-15 12:37:45 -0700 |
commit | f6de082b08f07a705a5a701017b8a160adb02fc6 (patch) | |
tree | a82f8fdfe2f9d907eddaa4718eac8f87481e47b3 /myisam | |
parent | 219c84faba28171cc04608f826703f5c031d70bc (diff) | |
parent | 000a09baac6db1a2c4d943802d00fa96cf9a5083 (diff) | |
download | mariadb-git-f6de082b08f07a705a5a701017b8a160adb02fc6.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean
myisam/myisampack.c:
Auto merged
mysql-test/r/metadata.result:
Auto merged
mysys/list.c:
Auto merged
mysys/thr_lock.c:
Auto merged
sql-common/client.c:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_test.cc:
Auto merged
sql/mysqld.cc:
SCCS merged
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/myisampack.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/myisam/myisampack.c b/myisam/myisampack.c index ba48cbf1b62..b3937ab9607 100644 --- a/myisam/myisampack.c +++ b/myisam/myisampack.c @@ -695,14 +695,22 @@ static int compress(PACK_MRG_INFO *mrg,char *result_table) else error=my_rename(new_name,org_name,MYF(MY_WME)); if (!error) + { VOID(my_copystat(temp_name,org_name,MYF(MY_COPYTIME))); + if (tmp_dir[0]) + VOID(my_delete(new_name,MYF(MY_WME))); + } } } else { if (tmp_dir[0]) + { error=my_copy(new_name,org_name, MYF(MY_WME | MY_HOLD_ORIGINAL_MODES | MY_COPYTIME)); + if (!error) + VOID(my_delete(new_name,MYF(MY_WME))); + } else error=my_redel(org_name,new_name,MYF(MY_WME | MY_COPYTIME)); } |