mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-03 09:03:47 +01:00
Do not assume v1.12 when there is no index-scheduler version
This commit is contained in:
parent
718a98fbbf
commit
c1e5897076
@ -47,13 +47,10 @@ impl Versioning {
|
|||||||
let this = Self { version };
|
let this = Self { version };
|
||||||
let from = match this.get_version(&wtxn)? {
|
let from = match this.get_version(&wtxn)? {
|
||||||
Some(version) => version,
|
Some(version) => version,
|
||||||
|
// fresh DB: use the db version
|
||||||
None => {
|
None => {
|
||||||
let assumed_version = match db_version {
|
this.set_version(&mut wtxn, db_version)?;
|
||||||
(1, 12, _) => db_version,
|
db_version
|
||||||
_ => (1, 12, 7),
|
|
||||||
};
|
|
||||||
this.set_version(&mut wtxn, assumed_version)?;
|
|
||||||
assumed_version
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
wtxn.commit()?;
|
wtxn.commit()?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user