summaryrefslogtreecommitdiffstats
path: root/src/back-shr.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2012-01-10 13:55:13 -0500
committerNalin Dahyabhai <nalin@redhat.com>2012-01-10 13:55:13 -0500
commit982244674489c01e3575409561b94337a75e2639 (patch)
tree9c232e63fc130dde2a917895a36dcbab4d7e77b4 /src/back-shr.c
parentb19a0bbcccb5c0c8ef91dfbb2c7c7b9289f3b6a1 (diff)
downloadslapi-nis-982244674489c01e3575409561b94337a75e2639.tar.gz
slapi-nis-982244674489c01e3575409561b94337a75e2639.tar.xz
slapi-nis-982244674489c01e3575409561b94337a75e2639.zip
- add a testing option for toggling the skip-uninteresting-updates logic
Diffstat (limited to 'src/back-shr.c')
-rw-r--r--src/back-shr.c6
1 files changed, 4 insertions, 2 deletions
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,