Incorrect implementation of os_file_set_eof_at on Windows

Bug #1087218 reported by Vladislav Vaintroub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Medium
Laurynas Biveinis
5.1
Fix Released
Medium
Laurynas Biveinis
5.5
Fix Released
Medium
Laurynas Biveinis
5.6
Invalid
Undecided
Unassigned

Bug Description

Current implementation incorrectly assumes that os_file_t is a C runtime file descriptor (i.e stemms from open() call). However os_file_t is a Windows HANDLE, and it cannot be chsize_s()'ed.

I'll attach a patch against MariaDB 5.1.66 shortly

Tags: contribution

Related branches

Revision history for this message
Vladislav Vaintroub (wlad-montyprogram) wrote :
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Thank you.

tags: added: contribution
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1286

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.