summaryrefslogtreecommitdiffstats
path: root/ldb/ldb_tdb/ldb_search.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-15 14:03:20 -0400
committerSimo Sorce <idra@samba.org>2008-10-16 13:42:22 -0400
commit8b0afbc4aa94628290d74165cab6bec97c7e532b (patch)
tree11d9529563f88a929de1ff44364be0d5864031bd /ldb/ldb_tdb/ldb_search.c
parentf11b502bf535ff5e09e595dbb95d9bdd5e2e7857 (diff)
downloadsssd-8b0afbc4aa94628290d74165cab6bec97c7e532b.tar.gz
sssd-8b0afbc4aa94628290d74165cab6bec97c7e532b.tar.xz
sssd-8b0afbc4aa94628290d74165cab6bec97c7e532b.zip
Transform the sequence_number operation into a normal extended operation as it should always have been. Make it also async so that it is not a special case.
(Sync from upstream)
Diffstat (limited to 'ldb/ldb_tdb/ldb_search.c')
-rw-r--r--ldb/ldb_tdb/ldb_search.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/ldb/ldb_tdb/ldb_search.c b/ldb/ldb_tdb/ldb_search.c
index a220b4a62..1c76411db 100644
--- a/ldb/ldb_tdb/ldb_search.c
+++ b/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
*/