]> mj.ucw.cz Git - libucw.git/commitdiff
I decided to turn off cf/url-equiv for indexation. however, after the indexer
authorRobert Spalek <robert@ucw.cz>
Thu, 13 Nov 2003 10:43:07 +0000 (10:43 +0000)
committerRobert Spalek <robert@ucw.cz>
Thu, 13 Nov 2003 10:43:07 +0000 (10:43 +0000)
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
lib/urlkey.c

index a56d1e694ae6c8d7f8fcdf230898d588818eb64a..bb925742f9ab77c40d888d31e7e26192cf5185c1 100644 (file)
@@ -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 */
 
index f0848015c1e1c8477849f5d9a74965c086c2a6b2..e6cc55d66fb1f55de7c9ef5c4cbdea56571bbc04 100644 (file)
@@ -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);
 }