]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/resolve: cleanup
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Mon, 30 May 2016 16:06:48 +0000 (18:06 +0200)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Mon, 30 May 2016 16:06:48 +0000 (18:06 +0200)
lib/resolve.c
lib/rplan.h

index 00243a59701c53856a5934199da40f66ecb34dcb..fd5229687b8d3d323c77e4dad87e23fbaf7aa8cb 100644 (file)
@@ -55,12 +55,6 @@ static int reset_yield(knot_layer_t *ctx) { return kr_ok(); }
 static int finish_yield(knot_layer_t *ctx) { return kr_ok(); }
 static int produce_yield(knot_layer_t *ctx, knot_pkt_t *pkt) { return kr_ok(); }
 
-/** Enforce cache flushing in debug mode. */
-static void flush_caches(struct kr_request *req) {
-       if (req->options & QUERY_CACHE_SYNC) {
-               kr_cache_sync(&req->ctx->cache);
-       }
-}
 /** @internal Macro for iterating module layers. */
 #define RESUME_LAYERS(from, req, qry, func, ...) \
     (req)->current_query = (qry); \
@@ -76,8 +70,7 @@ static void flush_caches(struct kr_request *req) {
                                } \
                        } \
                } \
-       } /* Invalidate current query and maybe flush caches. */ \
-       flush_caches(req); \
+       } /* Invalidate current query. */ \
        (req)->current_query = NULL
 
 /** @internal Macro for starting module iteration. */
index bf8aea328c97d8fd3439f54268670ac833c7b6ee..bf620367ac7e31f51b284d11d646d12c610589c6 100644 (file)
@@ -46,8 +46,7 @@
        X(ALWAYS_CUT,      1 << 18) /**< Always recover zone cut (even if cached). */ \
        X(DNSSEC_WEXPAND,  1 << 19) /**< Query response has wildcard expansion. */ \
        X(PERMISSIVE,      1 << 20) /**< Permissive resolver mode. */ \
-       X(STRICT,          1 << 21) /**< Strict resolver mode. */ \
-       X(CACHE_SYNC,      1 << 22) /**< Sync cache as often as possible. */
+       X(STRICT,          1 << 21) /**< Strict resolver mode. */
 
 /** Query flags */
 enum kr_query_flag {