mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
fix nb of dbs
This commit is contained in:
parent
1aaf24ccbf
commit
d3e5b10e23
@ -166,7 +166,7 @@ impl Index {
|
|||||||
) -> Result<Index> {
|
) -> Result<Index> {
|
||||||
use db_name::*;
|
use db_name::*;
|
||||||
|
|
||||||
options.max_dbs(21);
|
options.max_dbs(23);
|
||||||
unsafe { options.flag(Flags::MdbAlwaysFreePages) };
|
unsafe { options.flag(Flags::MdbAlwaysFreePages) };
|
||||||
|
|
||||||
let env = options.open(path)?;
|
let env = options.open(path)?;
|
||||||
@ -1461,11 +1461,11 @@ pub(crate) mod tests {
|
|||||||
db_snap!(index, field_distribution);
|
db_snap!(index, field_distribution);
|
||||||
|
|
||||||
db_snap!(index, field_distribution,
|
db_snap!(index, field_distribution,
|
||||||
@"
|
@r###"
|
||||||
age 1
|
age 1
|
||||||
id 2
|
id 2
|
||||||
name 2
|
name 2
|
||||||
"
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
// snapshot_index!(&index, "1", include: "^field_distribution$");
|
// snapshot_index!(&index, "1", include: "^field_distribution$");
|
||||||
@ -1482,10 +1482,10 @@ pub(crate) mod tests {
|
|||||||
|
|
||||||
db_snap!(index, field_distribution,
|
db_snap!(index, field_distribution,
|
||||||
@r###"
|
@r###"
|
||||||
age 1
|
age 1
|
||||||
id 2
|
id 2
|
||||||
name 2
|
name 2
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
// then we update a document by removing one field and another by adding one field
|
// then we update a document by removing one field and another by adding one field
|
||||||
@ -1498,10 +1498,10 @@ pub(crate) mod tests {
|
|||||||
|
|
||||||
db_snap!(index, field_distribution,
|
db_snap!(index, field_distribution,
|
||||||
@r###"
|
@r###"
|
||||||
has_dog 1
|
has_dog 1
|
||||||
id 2
|
id 2
|
||||||
name 2
|
name 2
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user