svn commit: samba r17059 - in branches/SOC/mkhl/ldb-map/modules: .

mkhl at samba.org mkhl at samba.org
Sat Jul 15 09:35:23 GMT 2006


Author: mkhl
Date: 2006-07-15 09:35:21 +0000 (Sat, 15 Jul 2006)
New Revision: 17059

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

Log:
If no remote addition/modification is neccessary, just free the async
handle and run the original request.

Martin

Modified:
   branches/SOC/mkhl/ldb-map/modules/ldb_map.c


Changeset:
Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c
===================================================================
--- branches/SOC/mkhl/ldb-map/modules/ldb_map.c	2006-07-15 09:32:17 UTC (rev 17058)
+++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c	2006-07-15 09:35:21 UTC (rev 17059)
@@ -2181,8 +2181,10 @@
 	ac->local_req->op.add.message = local;
 	ac->remote_req->op.add.message = remote;
 		
-	if (remote->num_elements == 0) /* no remote data */
-		return map_add_do_local(h);
+	if (remote->num_elements == 0) { /* no remote data */
+		talloc_free(h);
+		return ldb_next_request(module, req);
+	}
 
 	/* store the remote DN in 'IS_MAPPED' */
 	dn = ldb_dn_linearize(local, remote->dn);
@@ -2342,8 +2344,10 @@
 	ac->local_req->op.mod.message = local;
 	ac->remote_req->op.mod.message = remote;
 		
-	if (remote->num_elements == 0) /* no remote data */
-		return map_modify_do_local(h);
+	if (remote->num_elements == 0) { /* no remote data */
+		talloc_free(h);
+		return ldb_next_request(module, req);
+	}
 
 	/* prepare the search operation */
 	ac->search_req = search_self_req(ac, msg->dn);



More information about the samba-cvs mailing list