From a0de81cbe1f6282fdc13f6e61d07ebf0ae1c0f4c Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Thu, 13 Nov 2003 10:43:07 +0000 Subject: [PATCH] I decided to turn off cf/url-equiv for indexation. however, after the indexer is run on regular sherlock5, we cannot manually delete this file for indexer and restore for gatherd. so I am creating a new parameter that controls loading this prefix table. --- lib/index.h | 2 +- lib/urlkey.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.h b/lib/index.h index a56d1e69..bb925742 100644 --- a/lib/index.h +++ b/lib/index.h @@ -135,7 +135,7 @@ fp_hash(struct fingerprint *fp) #define URL_KEY_BUF_SIZE (3*MAX_URL_SIZE) byte *url_key(byte *url, byte *buf); void url_fingerprint(byte *url, struct fingerprint *fp); -void url_key_init(void); +void url_key_init(uns load_prefixes); /* Conversion of document age from seconds to our internal units */ diff --git a/lib/urlkey.c b/lib/urlkey.c index f0848015..e6cc55d6 100644 --- a/lib/urlkey.c +++ b/lib/urlkey.c @@ -229,10 +229,10 @@ static void CONSTRUCTOR urlkey_conf_init(void) } void -url_key_init(void) +url_key_init(uns load_prefixes) { pxtab_init(); - if (urlkey_pxtab_path) + if (load_prefixes && urlkey_pxtab_path) pxtab_load(urlkey_pxtab_path); } -- 2.39.2