Import of pkgsrc-2015Q3
This commit is contained in:
22
databases/db6/patches/patch-src_mp_mp__region.c
Normal file
22
databases/db6/patches/patch-src_mp_mp__region.c
Normal file
@@ -0,0 +1,22 @@
|
||||
$NetBSD: patch-src_mp_mp__region.c,v 1.1 2015/09/08 18:51:28 joerg Exp $
|
||||
|
||||
--- src/mp/mp_region.c.orig 2015-09-02 11:18:13.000000000 +0000
|
||||
+++ src/mp/mp_region.c
|
||||
@@ -278,7 +278,7 @@ __memp_init(env, dbmp, reginfo_off, htab
|
||||
MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0)
|
||||
return (ret);
|
||||
SH_TAILQ_INIT(&htab[i].hash_bucket);
|
||||
- atomic_init(&htab[i].hash_page_dirty, 0);
|
||||
+ db_atomic_init(&htab[i].hash_page_dirty, 0);
|
||||
}
|
||||
|
||||
mtx_base = mtx_prev = MUTEX_INVALID;
|
||||
@@ -332,7 +332,7 @@ no_prealloc:
|
||||
DB_MUTEX_SHARED, &hp->mtx_hash)) != 0)
|
||||
return (ret);
|
||||
SH_TAILQ_INIT(&hp->hash_bucket);
|
||||
- atomic_init(&hp->hash_page_dirty, 0);
|
||||
+ db_atomic_init(&hp->hash_page_dirty, 0);
|
||||
#ifdef HAVE_STATISTICS
|
||||
hp->hash_io_wait = 0;
|
||||
hp->hash_frozen = hp->hash_thawed = hp->hash_frozen_freed = 0;
|
||||
Reference in New Issue
Block a user