pub struct FileStoreOptions {
pub sync: bool,
pub max_cached_msgs: usize,
pub max_body_records: usize,
}Expand description
Options shared by FileStore and CachedFileStore (FR-025).
Fields§
§sync: boolFileStoreSync: fsync the body/seqnum files after every write.
max_cached_msgs: usizeFileStoreMaxCachedMsgs (honored by CachedFileStore only): maximum number of message
bodies held in memory; 0 means unbounded (cache every message saved this session, the
original pre-FR-025 behavior).
max_body_records: usizeFileStoreMaxBodyRecords (NEW-108, audit 006): bound the body log’s index to at most
this many of the most-recently-appended records; 0 (the default) means unbounded, the
original behavior. When set, the oldest indexed records are dropped from the index (never
physically truncated from the file – like a corrupt-tail’s unindexed bytes, they simply
become unreachable) once the bound is exceeded. This is an explicit, opt-in trade-off: a
bounded store can no longer serve a resend request for a sequence number old enough to have
aged out of the index, so only enable it when the deployment’s own reset/rollover cadence
(or downstream reconciliation) makes that acceptable – unlike log rotation, this changes
resend/recovery semantics, not just disk footprint.
Trait Implementations§
Source§impl Clone for FileStoreOptions
impl Clone for FileStoreOptions
Source§fn clone(&self) -> FileStoreOptions
fn clone(&self) -> FileStoreOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more