nostrdb: add is_replaceable_kind helper
we will be using this to detect replaceable kinds Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
27f55bc09f
commit
fa9b952295
@@ -263,6 +263,15 @@ struct ndb_search_words
|
||||
int num_words;
|
||||
};
|
||||
|
||||
|
||||
static inline int is_replaceable_kind(uint64_t kind)
|
||||
{
|
||||
return kind == 0 || kind == 3
|
||||
|| (10000 <= kind && kind < 20000)
|
||||
|| (30000 <= kind && kind < 40000);
|
||||
}
|
||||
|
||||
|
||||
// ndb_text_search_key
|
||||
//
|
||||
// This is compressed when in lmdb:
|
||||
|
||||
Reference in New Issue
Block a user