Bug #1119 myisamchk reportes errno 11 on Windows
Submitted: 22 Aug 2003 4:16 Modified: 25 Aug 2003 4:32
Reporter: Sinisa Milivojevic Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: MyISAM storage engine Severity:S2 (Serious)
Version:4..0 OS:Microsoft Windows (Windows)
Assigned to: Michael Widenius

[22 Aug 2003 4:16] Sinisa Milivojevic
Description:
With MySQL server shutdown on W2K, in some cases myisamchk returns errno 11.

How to repeat:
F:\mysql\bin>myisamchk --recover --analyze --sort-index --sort-records=3D1 =
--verbose
se --check-only-changed F:\mysql\data\test\table.MYI
- recovering (with keycache) MyISAM-table 'F:\mysql\data\test\table.MY=
I'
Data records: 0
- Sorting records for MyISAM-table 'F:\mysql\data\test\table.MYI'
- Sorting index for MyISAM-table 'F:\mysql\data\test\table.MYI'
myisamchk: Can't unlock file (Errcode: 11)
=20
[25 Aug 2003 4:32] Michael Widenius
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

The fix will be in 4.0.15