Skip to main content

Crate hyperdir

Crate hyperdir 

Source

Re-exports§

pub use interceptor::ScatterFirstInterceptor;
pub use file::CompactStats;
pub use fs::GcStats;
pub use fs::Outcome;
pub use fs::TXN_INTENT_STALE_MS;
pub use layout::HyperDirLayout;
pub use layout::ROOT_DIR_UUID;
pub use layout::KeyKind;
pub use lock::LockKind;
pub use lock::Conflict;
pub use lock::SetLkOutcome;
pub use lock::DEFAULT_LOCK_TTL_MS;
pub use clock::S3ClockInterceptor;
pub use clock::s3_clock_skew_ms;
pub use clock::CLOCK_TRUST_LOCAL_MS;

Modules§

clock
A coarse shared clock derived from S3 response Date headers, so lock and lease expiry stay consistent across mounts even when local wall clocks are skewed relative to each other.
file
fs
hyper
interceptor
Scatter-first commit interceptor.
layout
Physical S3 layout for directories and files.
lock
S3-backed advisory file locks (the “global” lock mode).
ondisk
s3

Structs§

CompactLeaseGuard
Handle to an acquired compactor lease. Pass back to DirStaging::release_compact_lease to relinquish it.
DirScatterInode
NameView
Identity-aware view of one name’s scatter (see DirScatterInode::resolve_name_view): the live entry (if the name currently exists) plus the dead identities’ tombstones/predelete markers (which retire only their own identity).
TombstoneHeader
On-disk header carried in the body of a Delete (tombstone) scatter object.

Enums§

DirScatterInodeOp

Constants§

DEFAULT_COMPACT_LEASE_FILE
Object name (under each directory’s prefix) used for the compactor lease.
DEFAULT_COMPACT_LEASE_TTL_MS
Default TTL for the compactor leader lease. A compactor that holds the lease but crashes will block another compactor for at most this duration.
DEFAULT_DIR_INODE_SCATTER_FOLDER
DEFAULT_DIR_INODE_SUFFIX
Suffix of a live (Create/Update) inode scatter object.
DEFAULT_DIR_TOMBSTONE_SUFFIX
Suffix of a tombstone (Delete) scatter object.

Traits§

DirStaging