re-enable garbage collection
Tara L Andrews [Wed, 20 Jun 2012 20:16:40 +0000 (22:16 +0200)]
lib/Text/Tradition/Directory.pm

index 09aed7b..9472b46 100644 (file)
@@ -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;