barrel_spaces_janitor (barrel_spaces v1.0.0)
View SourceJanitor 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
-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.