]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9529 pcache: update refresh_time after query refresh
authorHoward Chu <hyc@openldap.org>
Wed, 21 Apr 2021 21:32:42 +0000 (22:32 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 21 Apr 2021 21:32:42 +0000 (22:32 +0100)
servers/slapd/overlays/pcache.c

index ba411778f1d4abed9bd40e6d14f0eb0633ec6561..b1954f1ba9733263a41ec21c2d54533ea1997d8e 100644 (file)
@@ -3641,6 +3641,7 @@ consistency_check(
                                         */
                                        if ( query->expiry_time > op->o_time ) {
                                                refresh_query( op, query, on );
+                                               query->refresh_time = op->o_time + templ->ttr;
                                        }
                                }
                        }