mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Check if key are not empty in validator
This commit is contained in:
parent
772e55d174
commit
d18ee58ab9
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ pub use merge_functions::{
|
|||
};
|
||||
|
||||
pub fn valid_lmdb_key(key: impl AsRef<[u8]>) -> bool {
|
||||
key.as_ref().len() <= 511
|
||||
key.as_ref().len() <= 511 && !key.as_ref().is_empty()
|
||||
}
|
||||
|
||||
/// Divides one slice into two at an index, returns `None` if mid is out of bounds.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue