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
221a5011
Commit
221a5011
authored
Oct 17, 2005
by
SergeyV@selena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small update for #13377 patch
parent
cf3625b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
sql/log.cc
sql/log.cc
+1
-9
No files found.
sql/log.cc
View file @
221a5011
...
@@ -2322,15 +2322,10 @@ void MYSQL_LOG::signal_update()
...
@@ -2322,15 +2322,10 @@ void MYSQL_LOG::signal_update()
void
MYSQL_LOG
::
readers_addref
()
void
MYSQL_LOG
::
readers_addref
()
{
{
/*
/*
currently readers_addref and readers_release are necessary
There is no necessity for reference counting on *nix, since it allows to
only for __WIN__ build to wait untill readers will close
opened log files before reset.
There is no necessity for this on *nix, since it allows to
delete opened files, however it is more clean way to wait
delete opened files, however it is more clean way to wait
untill all files will be closed on *nix as well.
untill all files will be closed on *nix as well.
If decided, the following #ifdef section is to be removed.
*/
*/
#ifdef __WIN__
DBUG_ENTER
(
"MYSQL_LOG::reader_addref"
);
DBUG_ENTER
(
"MYSQL_LOG::reader_addref"
);
pthread_mutex_lock
(
&
LOCK_log
);
pthread_mutex_lock
(
&
LOCK_log
);
pthread_mutex_lock
(
&
LOCK_readers
);
pthread_mutex_lock
(
&
LOCK_readers
);
...
@@ -2338,12 +2333,10 @@ void MYSQL_LOG::readers_addref()
...
@@ -2338,12 +2333,10 @@ void MYSQL_LOG::readers_addref()
pthread_mutex_unlock
(
&
LOCK_readers
);
pthread_mutex_unlock
(
&
LOCK_readers
);
pthread_mutex_unlock
(
&
LOCK_log
);
pthread_mutex_unlock
(
&
LOCK_log
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
#endif
}
}
void
MYSQL_LOG
::
readers_release
()
void
MYSQL_LOG
::
readers_release
()
{
{
#ifdef __WIN__
DBUG_ENTER
(
"MYSQL_LOG::reader_release"
);
DBUG_ENTER
(
"MYSQL_LOG::reader_release"
);
pthread_mutex_lock
(
&
LOCK_log
);
pthread_mutex_lock
(
&
LOCK_log
);
readers_count
--
;
readers_count
--
;
...
@@ -2351,7 +2344,6 @@ void MYSQL_LOG::readers_release()
...
@@ -2351,7 +2344,6 @@ void MYSQL_LOG::readers_release()
pthread_cond_broadcast
(
&
reset_cond
);
pthread_cond_broadcast
(
&
reset_cond
);
pthread_mutex_unlock
(
&
LOCK_log
);
pthread_mutex_unlock
(
&
LOCK_log
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
#endif
}
}
#ifdef __NT__
#ifdef __NT__
...
...
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