Bug #12235 myisampack doesn't delete temp tables when used with -T flag
Submitted: 27 Jul 2005 23:40 Modified: 17 Aug 2005 17:16
Reporter: Sharif Nassar Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1.12 OS:Linux (linux)
Assigned to: Jim Winstead CPU Architecture:Any

[27 Jul 2005 23: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.
[27 Jul 2005 23:52] MySQL Verification Team
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 18: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
[15 Aug 2005 22:23] Jim Winstead
Fixed in 4.1.14 and 5.0.12.
[17 Aug 2005 17:16] Paul DuBois
Noted in 4.1.14, 5.0.12 changelogs.