Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

StateDB bringup #1

Open
ermo opened this issue Aug 12, 2022 · 3 comments
Open

StateDB bringup #1

ermo opened this issue Aug 12, 2022 · 3 comments
Assignees
Labels
priority: immediate Should be immediately addressed.

Comments

@ermo
Copy link
Member

ermo commented Aug 12, 2022

StateDB needs doing first in the new branch with .Installation knowing the current state pointer.

@ermo ermo added this to the Port moss to lmdb-based moss-db milestone Aug 12, 2022
@ermo
Copy link
Member Author

ermo commented Aug 15, 2022

Here's what Ikey had to say about it:

ermo: Do you want some verbalisation time?
Ikey Doherty: nah i think its a simple enough matter
Ikey Doherty: StateDB is uint -> State
Ikey Doherty: and Installation needs to poke the state pointer
Ikey Doherty: so we can load the right one
Ikey Doherty: whereas before we loaded the current/next state in the DB and it was ugly
Ikey Doherty: by getting it from the filesystem it'll fix the rollback thing
Ikey Doherty: also we can keep an entire State with pkgIDs[] in memory now
Ikey Doherty: vs keep filtering/eaching it
ermo: (Narrator: Ikey did want some verbalisation time)
Ikey Doherty: XD

@ikeycode
Copy link
Member

We have functioning StateDB - planning a DB break (sorry rootfs owners) to switch from string[] pkgID, to Selection

@ermo
Copy link
Member Author

ermo commented Feb 17, 2023

Ikey Doherty
As a matter of priority statedb needs fixing
This is a breaking change to installs
I.e. selection hints
Automatically installed manually selected etc
Statedb change is critical for upgrade logic
So can filter automatically installed stuff
And drop garbage
So IF pkgA depended on pkgB, an update happens and now pkgA depends on pkgC, THEN if pkgB is no longer needed, drop it

@ermo ermo added the priority: immediate Should be immediately addressed. label Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: immediate Should be immediately addressed.
Projects
None yet
Development

No branches or pull requests

2 participants