diff options
author | Jeremy Allison <jra@samba.org> | 2003-10-20 18:05:22 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-10-20 18:05:22 +0000 |
commit | f3121b19e4a4951350342a1882c9017686a995b1 (patch) | |
tree | c09f6ad540c145a478c9d75b0375ddc438d2f9b2 /source3/tdb/spinlock.c | |
parent | bfcb776abd1ead323963912efef2641e0bc41a03 (diff) | |
download | samba-f3121b19e4a4951350342a1882c9017686a995b1.tar.gz samba-f3121b19e4a4951350342a1882c9017686a995b1.tar.bz2 samba-f3121b19e4a4951350342a1882c9017686a995b1.zip |
Merge tridge's tdb updates.
Jeremy.
(This used to be commit f81fdcc935317f66d562d485a40948c2a8bcbb21)
Diffstat (limited to 'source3/tdb/spinlock.c')
-rw-r--r-- | source3/tdb/spinlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |