]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 30 Apr 2021 16:57:19 +0000 (16:57 +0000)
servers/slapd/overlays/pcache.c

index 8d45ed9aef9cb3809e6cb39f6f08aec172a950ab..3b49d307a751e0763cc3ddd40ff310efb126c0cd 100644 (file)
@@ -3645,6 +3645,7 @@ consistency_check(
                                         */
                                        if ( query->expiry_time > op->o_time ) {
                                                refresh_query( op, query, on );
+                                               query->refresh_time = op->o_time + templ->ttr;
                                        }
                                }
                        }