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/open.c | |
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/open.c')
-rw-r--r-- | lib/tdb/common/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c index 35968c9eaf..9fbd5fdea9 100644 --- a/lib/tdb/common/open.c +++ b/lib/tdb/common/open.c @@ -465,7 +465,7 @@ static int tdb_reopen_internal(struct tdb_context *tdb, bool active_lock) return 0; /* Nothing to do. */ } - if (tdb->num_locks != 0 || tdb->global_lock.count) { + if (tdb->num_locks != 0 || tdb->allrecord_lock.count) { TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_reopen: reopen not allowed with locks held\n")); goto fail; } |