ITS#6953 do not use the cache db when refreshing

This commit is contained in:
Ralf Haferkamp 2011-05-26 09:05:01 +02:00
parent 578ed00867
commit 200af921f4

View File

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