From: Tara L Andrews Date: Wed, 20 Jun 2012 20:16:40 +0000 (+0200) Subject: re-enable garbage collection X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d94224d92229a0ef7934e1e5b5542c328cb15208;p=scpubgit%2Fstemmatology.git re-enable garbage collection --- diff --git a/lib/Text/Tradition/Directory.pm b/lib/Text/Tradition/Directory.pm index 09aed7b..9472b46 100644 --- a/lib/Text/Tradition/Directory.pm +++ b/lib/Text/Tradition/Directory.pm @@ -216,11 +216,11 @@ before [ qw/ delete / ] => sub { # TODO Garbage collection doesn't work. Suck it up and live with the # inflated DB. -# after delete => sub { -# my $self = shift; -# my $gc = KiokuDB::GC::Naive->new( backend => $self->directory->backend ); -# $self->directory->backend->delete( $gc->garbage->members ); -# }; +after delete => sub { + my $self = shift; + my $gc = KiokuDB::GC::Naive->new( backend => $self->directory->backend ); + $self->directory->backend->delete( $gc->garbage->members ); +}; sub save { my $self = shift;