Skip to content

Move orphaned file deletion out of consistency_check #1501

@LNSD

Description

@LNSD

consistency_check in crates/core/dump/src/check.rs deletes orphaned files as a side effect (see TODO in that file). A "check" function shouldn't mutate anything—it should just report what's wrong.

The deletion logic should live in the garbage collector instead. The check function can return the list of orphaned files and let the caller decide what to do with them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions