mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
WL#2360 Performance schema
Part III: mysys instrumentation
This commit is contained in:
parent
6fd3866c6c
commit
c082955f06
64 changed files with 1380 additions and 916 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2008 MySQL AB
|
||||
/* Copyright (C) 2008 MySQL AB, 2008-2009 Sun Microsystems, Inc
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -57,7 +57,7 @@ File my_open_osfhandle(HANDLE handle, int oflag)
|
|||
uint i;
|
||||
DBUG_ENTER("my_open_osfhandle");
|
||||
|
||||
pthread_mutex_lock(&THR_LOCK_open);
|
||||
mysql_mutex_lock(&THR_LOCK_open);
|
||||
for(i= MY_FILE_MIN; i < my_file_limit;i++)
|
||||
{
|
||||
if(my_file_info[i].fhandle == 0)
|
||||
|
|
@ -70,7 +70,7 @@ File my_open_osfhandle(HANDLE handle, int oflag)
|
|||
break;
|
||||
}
|
||||
}
|
||||
pthread_mutex_unlock(&THR_LOCK_open);
|
||||
mysql_mutex_unlock(&THR_LOCK_open);
|
||||
if(offset == -1)
|
||||
errno= EMFILE; /* to many file handles open */
|
||||
DBUG_RETURN(offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue