From: Howard Chu Date: Sun, 2 Oct 2005 01:23:09 +0000 (+0000) Subject: Add slap_overinfo oi_origdb field to point to original BackendDB X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~336 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62f7c85be48a5d59039c2e883eb067d12d8aa8b9;p=openldap Add slap_overinfo oi_origdb field to point to original BackendDB --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index 4f5d1042f9..054edbe11a 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -868,6 +868,7 @@ overlay_config( BackendDB *be, const char *ov ) oi = ch_malloc( sizeof( slap_overinfo ) ); oi->oi_orig = be->bd_info; oi->oi_bi = *be->bd_info; + oi->oi_origdb = be; /* NOTE: the first time a global overlay is configured, * frontendDB gets this flag; it is used later by overlays diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index bf02fa3666..0d4a7fb983 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -2274,6 +2274,7 @@ typedef struct slap_overinst { typedef struct slap_overinfo { BackendInfo oi_bi; BackendInfo *oi_orig; + BackendDB *oi_origdb; struct slap_overinst *oi_list; } slap_overinfo;