fix(store,host): books list with nothing running says which books wait for a format upgrade
Plan P15 unit A5, fix round. With nothing running, `books list` reads the folder and takes no lock (nothing is opened), so it stopped showing which companies wait for a format upgrade, which a server showed. It now reads what each journal declares (`ledger_store::declared_format`: no lock, nothing written, the hash chain not verified, so it says what the books declare and no more) and adds "; waiting for a format upgrade (`wanderbooks books upgrade ID`)"; a journal that cannot be read says why on its line. The listing no longer fails when a company's folder vanishes while it is made (a book put aside meanwhile): a vanished entry is skipped, not an error (`list_books_inner` used `entry?`). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
c47144a401
commit
2275c34e86
5 files changed
+115
-10
No files matched your search
@@ -49,7 +49,7 @@ pub mod winsec;
|
||||
|
||||
pub use blob::BlobStore;
|
||||
pub use error::StoreError;
|
||||
pub use format::{FormatUpgrade, JournalFormat, SUPPORTED_JOURNAL_FORMAT};
|
||||
pub use format::{FormatUpgrade, JournalFormat, SUPPORTED_JOURNAL_FORMAT, declared_format};
|
||||
pub use journal::{GENESIS_PREV, JournalLine, JournalWriter};
|
||||
pub use snapshot::{DiskCheck, Snapshot};
|
||||
pub use store::audit;
|
||||
|
||||
Reference in new issue
Block a user