barrel_spaces_janitor (barrel_spaces v1.0.1)

View Source

Janitor for session leftovers: when the space's TTL sweeper tombstones an idle session doc, its message docs (which carry no TTL of their own) become orphans. The janitor periodically walks each OPEN space's session: prefix and deletes message groups whose session root is gone. Bounded per pass; deletions are real tombstones.

Summary

Functions

Run one janitor pass synchronously (test hook; the periodic timer runs the same code). Returns the number of deleted docs.

Functions

handle_call(Req, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

start_link()

sweep()

-spec sweep() -> {ok, non_neg_integer()}.

Run one janitor pass synchronously (test hook; the periodic timer runs the same code). Returns the number of deleted docs.