diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-30 18:46:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-30 18:46:43 +0900 |
| commit | f656968350be67b3458db01a8d75a8216f3238a8 (patch) | |
| tree | 74ec7b67f66c642804323f4e59c2f796e3758f85 /internal/store/store.go | |
| parent | d4fab811d3857c36f1d8271a940ffca113e012b7 (diff) | |
internal/store: destroy stale instances
This recovers from inconsistent state on power loss and /tmp/ is not wiped on startup, or if hakurei somehow crashes.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/store/store.go')
| -rw-r--r-- | internal/store/store.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/store/store.go b/internal/store/store.go index 4383d55f..eb9cec41 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -179,7 +179,8 @@ func (s *Store) Segments() (iter.Seq[SegmentIdentity], int, error) { } // All returns a non-reusable iterator over all [EntryHandle] known to this -// [Store]. +// [Store]. The resulting handles may be retained, but are only safe to use +// during the iteration producing them. // // Callers must call copyError after completing iteration and handle the error // accordingly. A non-nil error returned by copyError is of type [hst.AppError]. |
