Commit cfb82e9e authored by wax@kishkin.ru's avatar wax@kishkin.ru

rename event_connect_request to smem_event_connect_request

parent 4309d028
...@@ -468,7 +468,7 @@ Query_cache query_cache; ...@@ -468,7 +468,7 @@ Query_cache query_cache;
#ifdef HAVE_SMEM #ifdef HAVE_SMEM
char *shared_memory_base_name= default_shared_memory_base_name; char *shared_memory_base_name= default_shared_memory_base_name;
bool opt_enable_shared_memory; bool opt_enable_shared_memory;
HANDLE event_connect_request= 0; HANDLE smem_event_connect_request= 0;
#endif #endif
#include "sslopt-vars.h" #include "sslopt-vars.h"
...@@ -746,11 +746,11 @@ void kill_mysql(void) ...@@ -746,11 +746,11 @@ void kill_mysql(void)
} }
#ifdef HAVE_SMEM #ifdef HAVE_SMEM
/* /*
Send event to event_connect_request for aborting Send event to smem_event_connect_request for aborting
*/ */
if (!SetEvent(event_connect_request)) if (!SetEvent(smem_event_connect_request))
{ {
DBUG_PRINT("error",("Got error: %ld from SetEvent of event_connect_request",GetLastError())); DBUG_PRINT("error",("Got error: %ld from SetEvent of smem_event_connect_request",GetLastError()));
} }
#endif #endif
#endif #endif
...@@ -3737,7 +3737,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg) ...@@ -3737,7 +3737,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg)
*/ */
suffix_pos= strxmov(tmp,shared_memory_base_name,"_",NullS); suffix_pos= strxmov(tmp,shared_memory_base_name,"_",NullS);
strmov(suffix_pos, "CONNECT_REQUEST"); strmov(suffix_pos, "CONNECT_REQUEST");
if ((event_connect_request= CreateEvent(0,FALSE,FALSE,tmp)) == 0) if ((smem_event_connect_request= CreateEvent(0,FALSE,FALSE,tmp)) == 0)
{ {
errmsg= "Could not create request event"; errmsg= "Could not create request event";
goto error; goto error;
...@@ -3768,7 +3768,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg) ...@@ -3768,7 +3768,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg)
while (!abort_loop) while (!abort_loop)
{ {
/* Wait a request from client */ /* Wait a request from client */
WaitForSingleObject(event_connect_request,INFINITE); WaitForSingleObject(smem_event_connect_request,INFINITE);
/* /*
it can be after shutdown command it can be after shutdown command
...@@ -3899,7 +3899,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg) ...@@ -3899,7 +3899,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg)
if (handle_connect_map) UnmapViewOfFile(handle_connect_map); if (handle_connect_map) UnmapViewOfFile(handle_connect_map);
if (handle_connect_file_map) CloseHandle(handle_connect_file_map); if (handle_connect_file_map) CloseHandle(handle_connect_file_map);
if (event_connect_answer) CloseHandle(event_connect_answer); if (event_connect_answer) CloseHandle(event_connect_answer);
if (event_connect_request) CloseHandle(event_connect_request); if (smem_event_connect_request) CloseHandle(smem_event_connect_request);
decrement_handler_count(); decrement_handler_count();
DBUG_RETURN(0); DBUG_RETURN(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment