Bug #71292 | Wrong length is used for FILE_NAME column in FILE_INSTANCES table | ||
---|---|---|---|
Submitted: | 4 Jan 2014 18:09 | Modified: | 6 Jan 2014 13:17 |
Reporter: | Valeriy Kravchuk | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S3 (Non-critical) |
Version: | 5.6.15 | OS: | Any |
Assigned to: | Marc ALFF | CPU Architecture: | Any |
Tags: | file_instances, FILE_NAME, MAX_PATH, performance_schema |
[4 Jan 2014 18:09]
Valeriy Kravchuk
[6 Jan 2014 12:35]
MySQL Verification Team
Hello Valeriy, Thank you for the bug report. Verified as described. Thanks, Umesh
[6 Jan 2014 13:16]
Marc ALFF
The length is correct. malff@linux-3ezv:include> pwd /home/malff/BZR_TREE/mysql-trunk/include malff@linux-3ezv:include> grep FN_REFLEN *.h my_global.h:#define FN_REFLEN 512 /* Max length of full path-name */ The MySQL code, because of FN_REFLEN in the mysys library, only uses file names limited to 512 characters. The fact that a given platform *might* support longer file names is not a sufficient condition to ensure that the MySQL server *will* uses file names that long. This restriction, for better or worse, comes from the historical design of mysys. I agree that, in theory, a plugin may perform file io directly, without using the mysys file io wrappers, and need longer file names, in which case the performance schema max file name length supported is a limitation. Closing as not a bug.