diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-17 12:19:47 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-17 12:19:47 +1030 |
commit | e9114a758538d460d4f9deae5ce631bf44b1eff8 (patch) | |
tree | e56ad1e44f421d278bb467d6d83e1deeccd9b8bb /lib/tdb/common/tdb_private.h | |
parent | 7ab422d6fbd4f8be02838089a41f872d538ee7a7 (diff) | |
download | samba-e9114a758538d460d4f9deae5ce631bf44b1eff8.tar.gz samba-e9114a758538d460d4f9deae5ce631bf44b1eff8.tar.bz2 samba-e9114a758538d460d4f9deae5ce631bf44b1eff8.zip |
tdb: cleanup: rename global_lock to allrecord_lock.
The word global is overloaded in tdb. The global_lock inside struct
tdb_context is used to indicate we hold a lock across all the chains.
Rename it to allrecord_lock.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/common/tdb_private.h')
-rw-r--r-- | lib/tdb/common/tdb_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index be630e8bfa..2e5679690f 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -191,7 +191,7 @@ struct tdb_context { int read_only; /* opened read-only */ int traverse_read; /* read-only traversal */ int traverse_write; /* read-write traversal */ - struct tdb_lock_type global_lock; + struct tdb_lock_type allrecord_lock; int num_lockrecs; struct tdb_lock_type *lockrecs; /* only real locks, all with count>0 */ enum TDB_ERROR ecode; /* error code for last tdb error */ |