summaryrefslogtreecommitdiff
path: root/lib/tdb/common/tdb.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/tdb.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/tdb.c')
-rw-r--r--lib/tdb/common/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c
index 9fa7287113..ad81a56877 100644
--- a/lib/tdb/common/tdb.c
+++ b/lib/tdb/common/tdb.c
@@ -805,7 +805,7 @@ static int tdb_free_region(struct tdb_context *tdb, tdb_off_t offset, ssize_t le
/*
wipe the entire database, deleting all records. This can be done
- very fast by using a global lock. The entire data portion of the
+ very fast by using a allrecord lock. The entire data portion of the
file becomes a single entry in the freelist.
This code carefully steps around the recovery area, leaving it alone