summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_search.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-10-17 15:57:07 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-10-17 15:57:07 +1100
commitc35b0d9ab5d01e37cb06d02083a329e18ae59566 (patch)
tree20dd5885cf3da8d030ef69ab0d32bd2fb4207777 /source4/lib/ldb/ldb_tdb/ldb_search.c
parent4fb64f13d5101c960a7a234ff2b0b79283de5589 (diff)
parentc783d8a32e4d958aec6d943d0fa3de2e7d3a68c2 (diff)
downloadsamba-c35b0d9ab5d01e37cb06d02083a329e18ae59566.tar.gz
samba-c35b0d9ab5d01e37cb06d02083a329e18ae59566.tar.bz2
samba-c35b0d9ab5d01e37cb06d02083a329e18ae59566.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_search.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index a220b4a628..1c76411db2 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -277,30 +277,6 @@ int ltdb_search_dn1(struct ldb_module *module, struct ldb_dn *dn, struct ldb_mes
}
/*
- lock the database for read - use by ltdb_search
-*/
-static int ltdb_lock_read(struct ldb_module *module)
-{
- struct ltdb_private *ltdb = (struct ltdb_private *)module->private_data;
- if (ltdb->in_transaction == 0) {
- return tdb_lockall_read(ltdb->tdb);
- }
- return 0;
-}
-
-/*
- unlock the database after a ltdb_lock_read()
-*/
-static int ltdb_unlock_read(struct ldb_module *module)
-{
- struct ltdb_private *ltdb = (struct ltdb_private *)module->private_data;
- if (ltdb->in_transaction == 0) {
- return tdb_unlockall_read(ltdb->tdb);
- }
- return 0;
-}
-
-/*
add a set of attributes from a record to a set of results
return 0 on success, -1 on failure
*/