Convert cmd_import, cmd_export, MigrateTranscriptProgress to access_local()
These were the last Store::load() calls that should use the shared store. Remaining calls are intentional: fsck (needs both cached and fresh), persist.rs cached() infrastructure, view.rs read-only fallback, and access() bootstrap path. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
b8db8754be
commit
f6f330b07b
2 changed files with 10 additions and 7 deletions
|
|
@ -463,11 +463,12 @@ impl Run for AdminCmd {
|
|||
Self::Fsck => cli::admin::cmd_fsck(),
|
||||
Self::Dedup { apply } => cli::admin::cmd_dedup(apply).await,
|
||||
Self::DailyCheck => cli::admin::cmd_daily_check().await,
|
||||
Self::Import { files } => cli::admin::cmd_import(&files),
|
||||
Self::Export { files, all } => cli::admin::cmd_export(&files, all),
|
||||
Self::Import { files } => cli::admin::cmd_import(&files).await,
|
||||
Self::Export { files, all } => cli::admin::cmd_export(&files, all).await,
|
||||
Self::LoadContext { stats } => cli::node::cmd_load_context(stats).await,
|
||||
Self::MigrateTranscriptProgress => {
|
||||
let mut store = store::Store::load()?;
|
||||
let arc = hippocampus::access_local()?;
|
||||
let mut store = arc.lock().await;
|
||||
let count = store.migrate_transcript_progress()?;
|
||||
println!("Migrated {} transcript segment markers", count);
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue