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.h | |
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.h')
-rw-r--r-- | source3/tdb/spinlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tdb/spinlock.h b/source3/tdb/spinlock.h index 8b0e833ff5..967fe37457 100644 --- a/source3/tdb/spinlock.h +++ b/source3/tdb/spinlock.h @@ -39,6 +39,8 @@ int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type); int tdb_create_rwlocks(int fd, unsigned int hash_size); int tdb_clear_spinlocks(TDB_CONTEXT *tdb); +#define TDB_SPINLOCK_SIZE(hash_size) (((hash_size) + 1) * sizeof(tdb_rwlock_t)) + #else /* !USE_SPINLOCKS */ #if 0 #define tdb_create_rwlocks(fd, hash_size) 0 @@ -50,6 +52,8 @@ int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type); int tdb_create_rwlocks(int fd, unsigned int hash_size); #endif int tdb_clear_spinlocks(TDB_CONTEXT *tdb); +#define TDB_SPINLOCK_SIZE(hash_size) 0 + #endif #endif |