pub struct GcArgs {
pub sweep: bool,
pub vacuum: bool,
pub unpin_legacy: bool,
pub keep_recent: usize,
pub checkpoint_every: usize,
}Fields§
§sweep: boolDelete every object outside the retention policy’s keep-set. Without
this flag asd gc only reports what a sweep would reclaim.
vacuum: boolCompact the database file afterwards, returning freed pages to the OS.
Needs free disk roughly equal to the database’s size while it runs. On
its own (without --sweep) it compacts without deleting anything.
unpin_legacy: boolStop pinning the snapshots of milestones distilled before AgentStateGraph v1.2.2, which pinned every checkpoint. One-time and deletes nothing itself; milestones stay on the timeline. Checkpoints deliberately tagged to pin their state are left alone.
keep_recent: usizeKeep the state of the N most recent commits in full.
checkpoint_every: usizeAlso keep every Kth older commit’s state as a sparse checkpoint. The default, 0, keeps none: ASD rebuilds derived state from source at the git revision a milestone records rather than restoring a retained snapshot, and at one pin per hundred commits a busy store would keep thousands of full snapshots.
Trait Implementations§
Source§impl Args for GcArgs
impl Args for GcArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for GcArgs
impl FromArgMatches for GcArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.