svn commit: samba r19884 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .

metze at samba.org metze at samba.org
Sat Nov 25 14:49:17 GMT 2006


Author: metze
Date: 2006-11-25 14:49:17 +0000 (Sat, 25 Nov 2006)
New Revision: 19884

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19884

Log:
rename ldb_dn_key -> ltdb_index_key to make more clear what it's for...

metze
Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-11-25 09:39:25 UTC (rev 19883)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-11-25 14:49:17 UTC (rev 19884)
@@ -103,8 +103,8 @@
   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 @@
 
 	/* 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 @@
 		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 @@
 		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;
 	}



More information about the samba-cvs mailing list