Bug #12235 myisampack doesn't delete temp tables when used with -T flag
Submitted: 28 Jul 2005 1:40 Modified: 17 Aug 2005 19:16
Reporter: Sharif Nassar
Status: Closed
Category:Server Severity:S3 (Non-critical)
Version:4.1.12 OS:Linux (linux)
Assigned to: Jim Winstead Target Version:

[28 Jul 2005 1:40] Sharif Nassar
Description:
myisampack 1.22 as shipped with mysql 4.1.12 doesn't delete the .TMD temp files if -T
flag is passed to myisampack.

How to repeat:
myisampack TABLE -T /tmp

When it's done, /tmp/TABLE.TMD is extant.

Suggested fix:
myisampack should delete the TMD file when it's done compressing the table.
Alternatively, the documentation should explain that the file does not get deleted.
[28 Jul 2005 1:52] Miguel Solorzano
Thank you for the bug report.

Compressing /home/miguel/dbs/4.1/var/test/atest.MYD: (0 records)
- Calculating statistics
- Compressing file
Empty file saved in compressed format
miguel@hegel:~/dbs/4.1> ls /tmp/atest.TMD 
/tmp/atest.TMD
miguel@hegel:~/dbs/4.1>
[12 Aug 2005 20:43] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/28232
[16 Aug 2005 0:23] Jim Winstead
Fixed in 4.1.14 and 5.0.12.
[17 Aug 2005 19:16] Paul DuBois
Noted in 4.1.14, 5.0.12 changelogs.