summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-10-18 02:03:21 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:15 +0100
commit0906096ee4fbca6338863319edb68cfe338fd6a3 (patch)
tree085e82336ff3e7c280d0091eaae59d5ffc886eff /source4/lib/ldb/ldb_tdb/ldb_tdb.h
parentab52f9314dd28015786a2df6ce78a68eb5a275c5 (diff)
downloadsamba-0906096ee4fbca6338863319edb68cfe338fd6a3.tar.gz
samba-0906096ee4fbca6338863319edb68cfe338fd6a3.tar.bz2
samba-0906096ee4fbca6338863319edb68cfe338fd6a3.zip
r25690: - only use a readonly traverse in ldb_search when not in a transaction. When we are in a transaction then we could be in a top level modify operation (such as rename), so we must use a writeable traverse so that the async callbacks can do the modifies while the search is progressing.
- don't do the lockall operation on the tdb during a ldb search if in a transaction, as this would prevent modifies by callbacks as well (This used to be commit aa9ab431e071882f42ebc882e809ae1d4b8778d4)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_tdb.h')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.h b/source4/lib/ldb/ldb_tdb/ldb_tdb.h
index d4a8ff2fb1..b5e6472054 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.h
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.h
@@ -27,6 +27,8 @@ struct ltdb_private {
int flags;
} last_attribute;
} *cache;
+
+ int in_transaction;
};
/*