From 52e0581b7f17f5e3c7c563de1dab3789a7113dcd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 19 Feb 2009 01:22:04 +0000 Subject: [PATCH] More for prev commit --- servers/slapd/overlays/pcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 5feb7e1bee..2ad67c2f50 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -2460,7 +2460,7 @@ pcache_op_search( si->slimit = 0; si->slimit_exceeded = 0; si->caching_reason = PC_IGNORE; - if ( op->ors_slimit && op->ors_slimit < cm->num_entries_limit ) { + if ( op->ors_slimit > 0 && op->ors_slimit < cm->num_entries_limit ) { si->slimit = op->ors_slimit; op->ors_slimit = cm->num_entries_limit; } -- 2.39.5