X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=db.h;h=28bf84d9df60a6a003618931854e9b6fc36c3b5d;hb=fd6198891d6fd9642effc0843fef6f23b991af3e;hp=e23d47885ecedb85039fca8a71206ec765d071ba;hpb=63fd24efd774f1ed3f5dab82b934f35b7b039557;p=plocate diff --git a/db.h b/db.h index e23d478..28bf84d 100644 --- a/db.h +++ b/db.h @@ -5,7 +5,7 @@ struct Header { char magic[8]; // "\0plocate"; - uint32_t version; // 1. + uint32_t version; // 2 is the current version. uint32_t hashtable_size; uint32_t extra_ht_slots; uint32_t num_docids; @@ -24,6 +24,9 @@ struct Header { uint64_t next_zstd_dictionary_offset_bytes; uint64_t conf_block_length_bytes; uint64_t conf_block_offset_bytes; + + // Only if max_version >= 2. + bool check_visibility; }; struct Trigram {