Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
334a2476
Commit
334a2476
authored
Nov 23, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename event_connect_request to smem_event_connect_request
parent
aacd1c04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sql/mysqld.cc
sql/mysqld.cc
+7
-7
No files found.
sql/mysqld.cc
View file @
334a2476
...
...
@@ -468,7 +468,7 @@ Query_cache query_cache;
#ifdef HAVE_SMEM
char
*
shared_memory_base_name
=
default_shared_memory_base_name
;
bool
opt_enable_shared_memory
;
HANDLE
event_connect_request
=
0
;
HANDLE
smem_
event_connect_request
=
0
;
#endif
#include "sslopt-vars.h"
...
...
@@ -746,11 +746,11 @@ void kill_mysql(void)
}
#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
...
...
@@ -3737,7 +3737,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg)
*/
suffix_pos
=
strxmov
(
tmp
,
shared_memory_base_name
,
"_"
,
NullS
);
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"
;
goto
error
;
...
...
@@ -3768,7 +3768,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg)
while
(
!
abort_loop
)
{
/* Wait a request from client */
WaitForSingleObject
(
event_connect_request
,
INFINITE
);
WaitForSingleObject
(
smem_
event_connect_request
,
INFINITE
);
/*
it can be after shutdown command
...
...
@@ -3899,7 +3899,7 @@ pthread_handler_decl(handle_connections_shared_memory,arg)
if
(
handle_connect_map
)
UnmapViewOfFile
(
handle_connect_map
);
if
(
handle_connect_file_map
)
CloseHandle
(
handle_connect_file_map
);
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
();
DBUG_RETURN
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment