mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Finally bump grenad to v0.4.1
This commit is contained in:
parent
fb79c32430
commit
f367cc2e75
18 changed files with 130 additions and 94 deletions
|
@ -29,6 +29,7 @@ pub enum InternalError {
|
|||
FieldIdMapMissingEntry(FieldIdMapMissingEntry),
|
||||
Fst(fst::Error),
|
||||
GrenadInvalidCompressionType,
|
||||
GrenadInvalidFormatVersion,
|
||||
IndexingMergingKeys { process: &'static str },
|
||||
InvalidDatabaseTyping,
|
||||
RayonThreadPool(ThreadPoolBuildError),
|
||||
|
@ -97,6 +98,9 @@ where
|
|||
grenad::Error::InvalidCompressionType => {
|
||||
Error::InternalError(InternalError::GrenadInvalidCompressionType)
|
||||
}
|
||||
grenad::Error::InvalidFormatVersion => {
|
||||
Error::InternalError(InternalError::GrenadInvalidFormatVersion)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -186,6 +190,9 @@ impl fmt::Display for InternalError {
|
|||
Self::GrenadInvalidCompressionType => {
|
||||
f.write_str("Invalid compression type have been specified to grenad.")
|
||||
}
|
||||
Self::GrenadInvalidFormatVersion => {
|
||||
f.write_str("Invalid grenad file with an invalid version format.")
|
||||
}
|
||||
Self::IndexingMergingKeys { process } => {
|
||||
write!(f, "Invalid merge while processing {}.", process)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue