diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-01 12:34:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:25 -0500 |
commit | 425350bb618b7168de1d5d808c9ac5a76d84fcf0 (patch) | |
tree | 36103a51f2935869225ce7cebeb3f8bd567d54aa /source4/lib/ldb/ldb_tdb/ldb_tdb.h | |
parent | d448b73b5c80d73a7bdb3a669d9660c0a67da336 (diff) | |
download | samba-425350bb618b7168de1d5d808c9ac5a76d84fcf0.tar.gz samba-425350bb618b7168de1d5d808c9ac5a76d84fcf0.tar.bz2 samba-425350bb618b7168de1d5d808c9ac5a76d84fcf0.zip |
r6560: added a tdb_chainlock_read() call in ldb_search(). This guarantees
that ldb_search() sees a single consistent view of the database (by
blocking writes during a ldb_search)
(This used to be commit 917f2a8a073fd501f0626bea4f9deb91b95fdc90)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_tdb.h')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_tdb.h | 2 |
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 9fb60b6359..dfb985319e 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.h +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.h @@ -104,6 +104,8 @@ struct TDB_DATA ltdb_key(struct ldb_module *module, const char *dn); int ltdb_store(struct ldb_module *module, const struct ldb_message *msg, int flgs); int ltdb_delete_noindex(struct ldb_module *module, const char *dn); int ltdb_modify_internal(struct ldb_module *module, const struct ldb_message *msg); +int ltdb_lock_read(struct ldb_module *module); +int ltdb_unlock_read(struct ldb_module *module); /* The following definitions come from lib/ldb/ldb_tdb/ldb_match.c */ int ltdb_val_equal(struct ldb_module *module, |