From 62f7c85be48a5d59039c2e883eb067d12d8aa8b9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 2 Oct 2005 01:23:09 +0000 Subject: [PATCH] Add slap_overinfo oi_origdb field to point to original BackendDB --- servers/slapd/backover.c | 1 + servers/slapd/slap.h | 1 + 2 files changed, 2 insertions(+) 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; -- 2.39.5