summaryrefslogtreecommitdiffstats
path: root/src/back-shr.c
diff options
context:
space:
mode:
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,