r19884: rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...
authorStefan Metzmacher <metze@samba.org>
Sat, 25 Nov 2006 14:49:17 +0000 (14:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:31 +0000 (14:28 -0500)
metze
(This used to be commit 6b76a7be4ac5443d68a1253dc9ec430dcdc327f1)

source4/lib/ldb/ldb_tdb/ldb_index.c

index 8b906049027b3c53157acabed1f80c863974de15..872afb78aed17d4d2efdfc8fd2b217786334bd0c 100644 (file)
@@ -103,8 +103,8 @@ struct dn_list {
   return the dn key to be used for an index
   caller frees
 */
-static struct ldb_dn *ldb_dn_key(struct ldb_context *ldb,
-                       const char *attr, const struct ldb_val *value)
+static struct ldb_dn *ltdb_index_key(struct ldb_context *ldb,
+                                    const char *attr, const struct ldb_val *value)
 {
        struct ldb_dn *ret;
        char *dn;
@@ -207,7 +207,7 @@ static int ltdb_index_dn_simple(struct ldb_module *module,
 
        /* the attribute is indexed. Pull the list of DNs that match the 
           search criterion */
-       dn = ldb_dn_key(ldb, tree->u.equality.attr, &tree->u.equality.value);
+       dn = ltdb_index_key(ldb, tree->u.equality.attr, &tree->u.equality.value);
        if (!dn) return -1;
 
        msg = talloc(list, struct ldb_message);
@@ -853,7 +853,7 @@ static int ltdb_index_add1(struct ldb_module *module, const char *dn,
                return -1;
        }
 
-       dn_key = ldb_dn_key(ldb, el->name, &el->values[v_idx]);
+       dn_key = ltdb_index_key(ldb, el->name, &el->values[v_idx]);
        if (!dn_key) {
                talloc_free(msg);
                errno = ENOMEM;
@@ -963,7 +963,7 @@ int ltdb_index_del_value(struct ldb_module *module, const char *dn,
                return 0;
        }
 
-       dn_key = ldb_dn_key(ldb, el->name, &el->values[v_idx]);
+       dn_key = ltdb_index_key(ldb, el->name, &el->values[v_idx]);
        if (!dn_key) {
                return -1;
        }