X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Findex.h;h=d520f14c003afddde58a3e2a6130dc07a99ebf7b;hb=cab386086509de5dd4b87179d9e149c017fdc707;hp=bb925742f9ab77c40d888d31e7e26192cf5185c1;hpb=a0de81cbe1f6282fdc13f6e61d07ebf0ae1c0f4c;p=libucw.git diff --git a/lib/index.h b/lib/index.h index bb925742..d520f14c 100644 --- a/lib/index.h +++ b/lib/index.h @@ -9,7 +9,7 @@ #include "custom/lib/custom.h" -#define INDEX_VERSION (0x32260100+sizeof(struct card_attr)) /* Increase with each incompatible change in index format */ +#define INDEX_VERSION (0x32260200+sizeof(struct card_attr)) /* Increase with each incompatible change in index format */ /* * Words @@ -126,7 +126,6 @@ void fingerprint(byte *string, struct fingerprint *fp); static inline u32 fp_hash(struct fingerprint *fp) { - /* This hash is expected to be monotonic wrt. fpsort's order by fprecog */ return (fp->hash[0] << 24) | (fp->hash[1] << 16) | (fp->hash[2] << 8) | fp->hash[3]; } @@ -135,7 +134,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(uns load_prefixes); +void url_key_init(void); /* Conversion of document age from seconds to our internal units */