Add slap_overinfo oi_origdb field to point to original BackendDB

This commit is contained in:
Howard Chu 2005-10-02 01:23:09 +00:00
parent ada7954667
commit 62f7c85be4
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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;