summaryrefslogtreecommitdiff
path: root/lib/tdb/common/open.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-02-17 12:19:47 +1030
committerRusty Russell <rusty@rustcorp.com.au>2010-02-17 12:19:47 +1030
commite9114a758538d460d4f9deae5ce631bf44b1eff8 (patch)
treee56ad1e44f421d278bb467d6d83e1deeccd9b8bb /lib/tdb/common/open.c
parent7ab422d6fbd4f8be02838089a41f872d538ee7a7 (diff)
downloadsamba-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.c2
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;
}