[Zetaback-devel] [zetaback commit] r180 - in branches/sendr: . test

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Fri Mar 11 12:27:30 EST 2011


Author: mark
Date: 2011-03-11 12:27:30 -0500 (Fri, 11 Mar 2011)
New Revision: 180

Modified:
   branches/sendr/test/test.sh
   branches/sendr/zetaback.in
Log:
Fix ignoring datasets that are already marked for deletion

Modified: branches/sendr/test/test.sh
===================================================================
--- branches/sendr/test/test.sh	2011-03-10 23:13:00 UTC (rev 179)
+++ branches/sendr/test/test.sh	2011-03-11 17:27:30 UTC (rev 180)
@@ -84,6 +84,7 @@
     full_interval = 604800
     dataset_backup = 1
     dataset_recursive = 1
+    retention = 10
 }
 
 $HOSTNAME { }

Modified: branches/sendr/zetaback.in
===================================================================
--- branches/sendr/zetaback.in	2011-03-10 23:13:00 UTC (rev 179)
+++ branches/sendr/zetaback.in	2011-03-11 17:27:30 UTC (rev 180)
@@ -881,10 +881,10 @@
     if (defer_destroy_enabled()) {
       my $dataset;
       foreach my $point (@backup_points) {
-        if(exists($info->{full}->{$_}->{dataset})) {
-          $dataset = $info->{full}->{$_}->{dataset};
-        } elsif(exists($info->{incremental}->{$_}->{dataset})) {
-          $dataset = $info->{incremental}->{$_}->{dataset};
+        if(exists($info->{full}->{$point}->{dataset})) {
+          $dataset = $info->{full}->{$point}->{dataset};
+        } elsif(exists($info->{incremental}->{$point}->{dataset})) {
+          $dataset = $info->{incremental}->{$point}->{dataset};
         } else {
           next;
         }



More information about the Zetaback-devel mailing list