summaryrefslogtreecommitdiff
path: root/mysys/my_fopen.c
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2020-04-15 19:11:49 +0400
committerSergey Vojtovich <svoj@mariadb.org>2020-04-15 19:14:04 +0400
commit10cdf5230d0c8275830e9446c915651691219b39 (patch)
treecddabaa952fb4f425c71400c313dee8b085a8a1d /mysys/my_fopen.c
parent5876ed9e5b573596d449edfafc1f99caf5fd03d0 (diff)
downloadmariadb-git-10cdf5230d0c8275830e9446c915651691219b39.tar.gz
my_file_opened to my_atomic
Diffstat (limited to 'mysys/my_fopen.c')
-rw-r--r--mysys/my_fopen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_fopen.c b/mysys/my_fopen.c
index ea13dfb6ee4..8cf5561072a 100644
--- a/mysys/my_fopen.c
+++ b/mysys/my_fopen.c
@@ -222,7 +222,8 @@ FILE *my_fdopen(File Filedes, const char *name, int Flags, myf MyFlags)
{
if (my_file_info[Filedes].type != UNOPEN)
{
- thread_safe_decrement32(&my_file_opened); /* File is opened with my_open ! */
+ /* File is opened with my_open ! */
+ my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED);
}
else
{