From f3121b19e4a4951350342a1882c9017686a995b1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 20 Oct 2003 18:05:22 +0000 Subject: Merge tridge's tdb updates. Jeremy. (This used to be commit f81fdcc935317f66d562d485a40948c2a8bcbb21) --- source3/tdb/spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/tdb/spinlock.c') diff --git a/source3/tdb/spinlock.c b/source3/tdb/spinlock.c index 2370ce3bdd..3fddeafb2c 100644 --- a/source3/tdb/spinlock.c +++ b/source3/tdb/spinlock.c @@ -372,7 +372,7 @@ int tdb_create_rwlocks(int fd, unsigned int hash_size) unsigned size, i; tdb_rwlock_t *rwlocks; - size = (hash_size + 1) * sizeof(tdb_rwlock_t); + size = TDB_SPINLOCK_SIZE(hash_size); rwlocks = malloc(size); if (!rwlocks) return -1; -- cgit