diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2010-11-19 17:01:17 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2010-11-19 17:01:17 -0500 |
commit | fa03b5265761358da1e1d7ff6a23d7b669b9d99a (patch) | |
tree | 0c9cf9ae5e4d2c7a490591735b365d89fe65c8ee | |
parent | 5e628544a8ad5b08986bbe580484f4f7b7701b04 (diff) | |
download | slapi-nis-fa03b5265761358da1e1d7ff6a23d7b669b9d99a.tar.gz slapi-nis-fa03b5265761358da1e1d7ff6a23d7b669b9d99a.tar.xz slapi-nis-fa03b5265761358da1e1d7ff6a23d7b669b9d99a.zip |
- more logging
-rw-r--r-- | src/back-shr.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/back-shr.c b/src/back-shr.c index 78e0af4..64f5ea1 100644 --- a/src/back-shr.c +++ b/src/back-shr.c @@ -1041,6 +1041,19 @@ backend_shr_update_references_cb(const char *group, const char *set, these_entries = prev_entries; prev_entries = NULL; } + /* Log a diagnostic if there's no more work to do. */ + if (these_entries == NULL) { + slapi_log_error(SLAPI_LOG_PLUGIN, + state->plugin_desc->spd_id, + "no more references to " + "chase (link=%d, " + "attributes=\"%s\",\"%s\")\n", + j, + these_attrs[0] ? + these_attrs[0] : "", + prev_attrs[0] ? + prev_attrs[0] : ""); + } } /* Walk the last list of predecessors and update any related * entries in this map. */ @@ -1213,6 +1226,17 @@ backend_shr_update_references_cb(const char *group, const char *set, these_entries = next_entries; next_entries = NULL; } + /* Log a diagnostic if there's no more work to do. */ + if (these_entries == NULL) { + slapi_log_error(SLAPI_LOG_PLUGIN, + state->plugin_desc->spd_id, + "no more referrals to chase " + "(attributes=\"%s\",\"%s\")\n", + these_attrs[0] ? + these_attrs[0] : "", + prev_attrs[0] ? + prev_attrs[0] : ""); + } } /* Walk the last list of entries and update any related * entries in this map. */ |