summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication/windows_protocol_util.c
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-09-04 15:45:57 +0000
committerNathan Kinder <nkinder@redhat.com>2007-09-04 15:45:57 +0000
commit6cc77119625e8c63d27ff1a6a8e8a7159c3abbfe (patch)
treec22aaf9eeb1bb909d5d53c8e05a3ba25a30cbf64 /ldap/servers/plugins/replication/windows_protocol_util.c
parent1374ca57a7fc3dcf4dec1bb7f70d7a4fb249cdfc (diff)
downloadds-6cc77119625e8c63d27ff1a6a8e8a7159c3abbfe.tar.gz
ds-6cc77119625e8c63d27ff1a6a8e8a7159c3abbfe.tar.xz
ds-6cc77119625e8c63d27ff1a6a8e8a7159c3abbfe.zip
Resolves: 207567
Summary: Corrected search scope used to find entries to sync in winsync total update protocol.
Diffstat (limited to 'ldap/servers/plugins/replication/windows_protocol_util.c')
-rw-r--r--ldap/servers/plugins/replication/windows_protocol_util.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c
index 573ee587..4ff364af 100644
--- a/ldap/servers/plugins/replication/windows_protocol_util.c
+++ b/ldap/servers/plugins/replication/windows_protocol_util.c
@@ -3028,23 +3028,11 @@ windows_process_total_add(Private_Repl_Protocol *prp,Slapi_Entry *e, Slapi_DN* r
return retval;
}
-static int
-windows_process_total_delete(Private_Repl_Protocol *prp,Slapi_Entry *e, Slapi_DN* remote_dn)
-{
- int retval = 0;
- if (delete_remote_entry_allowed(e))
- {
- retval = windows_conn_send_delete(prp->conn, slapi_sdn_get_dn(remote_dn), NULL, NULL /* returned controls */);
- }
- return retval;
-}
-
/* Entry point for the total protocol */
int windows_process_total_entry(Private_Repl_Protocol *prp,Slapi_Entry *e)
{
int retval = 0;
int is_ours = 0;
- int is_tombstone = 0;
Slapi_DN *remote_dn = NULL;
int missing_entry = 0;
const Slapi_DN *local_dn = slapi_entry_get_sdn_const(e);
@@ -3063,14 +3051,7 @@ int windows_process_total_entry(Private_Repl_Protocol *prp,Slapi_Entry *e)
agmt_get_long_name(prp->agmt), slapi_sdn_get_dn(local_dn));
goto error;
}
- /* Either the entry is a tombstone, or not a tombstone */
- if (is_tombstone)
- {
- retval = windows_process_total_delete(prp,e,remote_dn);
- } else
- {
- retval = windows_process_total_add(prp,e,remote_dn,missing_entry);
- }
+ retval = windows_process_total_add(prp,e,remote_dn,missing_entry);
}
if (remote_dn)
{