summaryrefslogtreecommitdiffstats
path: root/src/back-shr.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-12-03 20:33:10 -0500
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-12-03 20:33:10 -0500
commitd1f0b645f3f38473120321fce79fe88d8b3fc030 (patch)
tree2b25b134b98fba86f9cf2af20d2d214caf6527a3 /src/back-shr.c
parent0167fd212e6eb31cafb8f637e79214649ed522ab (diff)
downloadslapi-nis-d1f0b645f3f38473120321fce79fe88d8b3fc030.tar.gz
slapi-nis-d1f0b645f3f38473120321fce79fe88d8b3fc030.tar.xz
slapi-nis-d1f0b645f3f38473120321fce79fe88d8b3fc030.zip
- add some comments for later
Diffstat (limited to 'src/back-shr.c')
-rw-r--r--src/back-shr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/back-shr.c b/src/back-shr.c
index 7725cc5..51d4497 100644
--- a/src/back-shr.c
+++ b/src/back-shr.c
@@ -650,7 +650,7 @@ backend_shr_get_set_config_entry_cb(Slapi_Entry *e, void *callback_data,
/* Given a map configuration, return true if the entry is supposed to be in the
* map. */
-bool_t
+static bool_t
backend_shr_entry_matches_set(struct backend_shr_set_data *set_data,
Slapi_PBlock *pb, Slapi_Entry *e)
{
@@ -855,11 +855,15 @@ backend_shr_update_references_cb(const char *group, const char *set,
inref_attrs = set_data->inref_attrs;
for (i = 0; (inref_attrs != NULL) && (inref_attrs[i] != NULL); i++) {
- /* We're only processing inref attributes for other maps. */
+ /* We're only processing inref attributes for other maps, since
+ * we've already done whatever's needed for this entry in this
+ * map. */
if ((strcmp(inref_attrs[i]->group, group) == 0) &&
(strcmp(inref_attrs[i]->set, set) == 0)) {
continue;
}
+ /* TODO: If this entry belongs in the named group and set, keep
+ * going, otherwise, we can avoid reading the entry. */
/* Extract the named attribute from the entry. */
values = NULL;
if (slapi_vattr_values_get(cbdata->e,