]> git.sur5r.net Git - openldap/commitdiff
More for prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 19 Feb 2009 01:22:04 +0000 (01:22 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 19 Feb 2009 01:22:04 +0000 (01:22 +0000)
servers/slapd/overlays/pcache.c

index 5feb7e1bee87b490b82a4828537598a10d178f76..2ad67c2f50ab6406a7ee261fb4bb3296ccfd711c 100644 (file)
@@ -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;
                }