Transform the sequence_number operation into a normal extended operation as it should...
[ira/wip.git] / source4 / lib / ldb / ldb_tdb / ldb_search.c
index a220b4a6288c7f17ef4ce57ca4d36681e499a811..1c76411db2945b289627212b026c2009a3e72ca1 100644 (file)
@@ -276,30 +276,6 @@ int ltdb_search_dn1(struct ldb_module *module, struct ldb_dn *dn, struct ldb_mes
        return LDB_SUCCESS;
 }
 
-/*
-  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