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.
#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 */
}
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);
}