mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-30 21:09:14 -04:00
Nothing produces a row in `entry` after this. The walk fills the volume index and its source store, which is what the arena has been doing since the storage map landed; the persistent half of the indexer was a second writer to a second store that no source ever read. Gone: IndexPersistence, and with it the branch in every phase. The state machine is Discovery then Processing, since Aggregation existed to bubble directory sizes the arena now maintains incrementally, and ContentIdentification is ContentIdentityJob's job against the source store. DatabaseAdapter, PersistentEventHandler and the location watching that fed them go too, so ArenaWriter is the only change handler and the walk and the watcher differ only in Notify. DatabaseStorage was 1230 lines of entry writes wrapped around three things the arena actually uses. Those are ops::indexing::metadata now: EntryMetadata, extract_metadata and get_inode, plus is_hidden_path. delete_subtree moves onto the entry entity, which is what it operates on and what it dies with. locations.rescan, locations.enable_indexing and locations.triggerJob dispatched the deleted indexer or its media jobs, so the ops and their UI go. Reindex and Run Now are gone from the inspector; the job policy toggles stay, since they outlive the ops that read them. Adding a location no longer dispatches a walk, which is the point: the drive is already mapped. The entry tables and their readers are still here. That is the next commit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>