diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-20 00:59:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:45 -0500 |
commit | 338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd (patch) | |
tree | 9cbd8fa10fbb46b70fe1a2783bc30689f3d652ba /source4/lib/ldb/ldb_tdb/ldb_tdb.h | |
parent | f650ea10120d41ceff8ea04975fea7637cb45a0a (diff) | |
download | samba-338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd.tar.gz samba-338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd.tar.bz2 samba-338c3f8523d5db2cba1b79f94ff0cecabcd9e9cd.zip |
r8625: move the ldb_wrap logic into the ldb code. This logic is meant to
avoid the horrors of posix locking, but it was preventing us having an
ldb open twice with different options. Now each ldb open of the same
file shares the same underlying tdb, but uses a different ldb
structure
(This used to be commit 4e090c66dfa1d2764e4693578d3845be3b8893f6)
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_tdb.h')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_tdb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.h b/source4/lib/ldb/ldb_tdb/ldb_tdb.h index 46c5843d60..9ee3bfb70f 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.h +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.h @@ -105,3 +105,7 @@ int ltdb_unlock_read(struct ldb_module *module); int ltdb_index_del_value(struct ldb_module *module, const char *dn, struct ldb_message_element *el, int v_idx); +struct tdb_context *ltdb_wrap_open(TALLOC_CTX *mem_ctx, + const char *path, int hash_size, int tdb_flags, + int open_flags, mode_t mode); + |