summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorSergeyV@selena. <>2005-10-17 19:03:54 +0400
committerSergeyV@selena. <>2005-10-17 19:03:54 +0400
commit221a501120899f9bcaa4646564622c4f7a4e0a62 (patch)
treed9fe35ffa4e6f56dff33e31e029f4525fbd6dd73 /sql/log.cc
parentcf3625b90f531fc75454e38e3a546df526f4379c (diff)
downloadmariadb-git-221a501120899f9bcaa4646564622c4f7a4e0a62.tar.gz
Small update for #13377 patch
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/sql/log.cc b/sql/log.cc
index d5a5eecf36b..91320f40176 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2322,15 +2322,10 @@ void MYSQL_LOG::signal_update()
void MYSQL_LOG::readers_addref()
{
/*
- currently readers_addref and readers_release are necessary
- 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
+ There is no necessity for reference counting on *nix, since it allows to
delete opened files, however it is more clean way to wait
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");
pthread_mutex_lock(&LOCK_log);
pthread_mutex_lock(&LOCK_readers);
@@ -2338,12 +2333,10 @@ void MYSQL_LOG::readers_addref()
pthread_mutex_unlock(&LOCK_readers);
pthread_mutex_unlock(&LOCK_log);
DBUG_VOID_RETURN;
-#endif
}
void MYSQL_LOG::readers_release()
{
-#ifdef __WIN__
DBUG_ENTER("MYSQL_LOG::reader_release");
pthread_mutex_lock(&LOCK_log);
readers_count--;
@@ -2351,7 +2344,6 @@ void MYSQL_LOG::readers_release()
pthread_cond_broadcast(&reset_cond);
pthread_mutex_unlock(&LOCK_log);
DBUG_VOID_RETURN;
-#endif
}
#ifdef __NT__