From 982244674489c01e3575409561b94337a75e2639 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 10 Jan 2012 13:55:13 -0500 Subject: - add a testing option for toggling the skip-uninteresting-updates logic --- src/back-shr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/back-shr.c') diff --git a/src/back-shr.c b/src/back-shr.c index 044c694..e75a26b 100644 --- a/src/back-shr.c +++ b/src/back-shr.c @@ -876,7 +876,8 @@ backend_shr_update_references_cb(const char *group, const char *set, /* If the entry didn't change any attributes which are at all relevant * to this map, then we don't need to recompute anything. */ - if ((cbdata->mods != NULL) && (set_data->rel_attrs != NULL)) { + if (set_data->skip_uninteresting_updates && + (cbdata->mods != NULL) && (set_data->rel_attrs != NULL)) { for (i = 0; cbdata->mods[i] != NULL; i++) { for (j = 0; set_data->rel_attrs[j] != NULL; j++) { if (slapi_attr_types_equivalent(cbdata->mods[i]->mod_type, @@ -1542,7 +1543,8 @@ backend_shr_modify_entry_cb(const char *group, const char *set, bool_t flag, /* If the entry didn't change any attributes which are at all relevant * to the map, and it both was and is still is in the map, then we * don't need to recompute anything. */ - if ((cbdata->mods != NULL) && (set_data->rel_attrs != NULL)) { + if (set_data->skip_uninteresting_updates && + (cbdata->mods != NULL) && (set_data->rel_attrs != NULL)) { for (i = 0; cbdata->mods[i] != NULL; i++) { for (j = 0; set_data->rel_attrs[j] != NULL; j++) { if (slapi_attr_types_equivalent(cbdata->mods[i]->mod_type, -- cgit