mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#6953 do not use the cache db when refreshing
This commit is contained in:
parent
578ed00867
commit
200af921f4
@ -2891,6 +2891,8 @@ pcache_op_bind(
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
|
||||
static slap_response refresh_merge;
|
||||
|
||||
static int
|
||||
pcache_op_search(
|
||||
Operation *op,
|
||||
@ -2929,7 +2931,8 @@ pcache_op_search(
|
||||
cm->db.be_acl = op->o_bd->be_acl;
|
||||
|
||||
{
|
||||
/* See if we're processing a Bind request */
|
||||
/* See if we're processing a Bind request
|
||||
* or a cache refresh */
|
||||
slap_callback *cb = op->o_callback;
|
||||
|
||||
for ( ; cb; cb=cb->sc_next ) {
|
||||
@ -2937,6 +2940,10 @@ pcache_op_search(
|
||||
pbi = cb->sc_private;
|
||||
break;
|
||||
}
|
||||
if ( cb->sc_response == refresh_merge ) {
|
||||
/* This is a refresh, do not search the cache */
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user