summaryrefslogtreecommitdiff
path: root/mysys/my_div.c
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2004-02-19 19:33:09 +0200
committermonty@mashka.mysql.fi <>2004-02-19 19:33:09 +0200
commite347f63192874ee5d3123f7bf078a05fecc5ef58 (patch)
tree86d1d367349c537e9cbd45f6bf0ba3c2315f1a59 /mysys/my_div.c
parent8a865250c4180ee197c4626560eb46c2cea0a696 (diff)
downloadmariadb-git-e347f63192874ee5d3123f7bf078a05fecc5ef58.tar.gz
Max open files handling moved to my_set_max_open_files()
This ensures that my_file_info takes this the max number of files into account and one can now use --open-files-limit on windows to increase number of used files up to 2048
Diffstat (limited to 'mysys/my_div.c')
-rw-r--r--mysys/my_div.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_div.c b/mysys/my_div.c
index 777ffe403d7..9141ff4fcc5 100644
--- a/mysys/my_div.c
+++ b/mysys/my_div.c
@@ -27,7 +27,7 @@
my_string my_filename(File fd)
{
DBUG_ENTER("my_filename");
- if (fd >= MY_NFILE)
+ if ((uint) fd >= (uint) my_file_limit)
DBUG_RETURN((char*) "UNKNOWN");
if (fd >= 0 && my_file_info[fd].type != UNOPEN)
{