summaryrefslogtreecommitdiff
path: root/databases/db6/patches/patch-src_mutex_mut__method.c
blob: 606dcff266089f0cdb56807077e17758f27ba93c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-src_mutex_mut__method.c,v 1.1 2015/09/08 18:51:28 joerg Exp $

--- src/mutex/mut_method.c.orig	2015-09-02 11:18:11.000000000 +0000
+++ src/mutex/mut_method.c
@@ -501,7 +501,7 @@ atomic_compare_exchange(env, v, oldval, 
 	MUTEX_LOCK(env, mtx);
 	ret = atomic_read(v) == oldval;
 	if (ret)
-		atomic_init(v, newval);
+		db_atomic_init(v, newval);
 	MUTEX_UNLOCK(env, mtx);
 
 	return (ret);