summaryrefslogtreecommitdiff
path: root/lib/tdb/common/tdb_private.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-02-17 12:18:33 +1030
committerRusty Russell <rusty@rustcorp.com.au>2010-02-17 12:18:33 +1030
commit7ab422d6fbd4f8be02838089a41f872d538ee7a7 (patch)
treebee48874b28925ba38e2f8049039359c2967fa73 /lib/tdb/common/tdb_private.h
parenta6e0ef87d25734760fe77b87a9fd11db56760955 (diff)
downloadsamba-7ab422d6fbd4f8be02838089a41f872d538ee7a7.tar.gz
samba-7ab422d6fbd4f8be02838089a41f872d538ee7a7.tar.bz2
samba-7ab422d6fbd4f8be02838089a41f872d538ee7a7.zip
tdb: cleanup: rename GLOBAL_LOCK to OPEN_LOCK.
The word global is overloaded in tdb. The GLOBAL_LOCK offset is used at open time to serialize initialization (and by the transaction code to block open). Rename it to OPEN_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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h
index 093dd9a137..be630e8bfa 100644
--- a/lib/tdb/common/tdb_private.h
+++ b/lib/tdb/common/tdb_private.h
@@ -102,7 +102,7 @@ void tdb_trace_2rec_retrec(struct tdb_context *tdb, const char *op,
#endif /* !TDB_TRACE */
/* lock offsets */
-#define GLOBAL_LOCK 0
+#define OPEN_LOCK 0
#define ACTIVE_LOCK 4
#define TRANSACTION_LOCK 8