]> git.tue.mpg.de Git - dss.git/commitdiff
Don't invalidate current_snapshot_time during compute_next_snapshot_time().
authorAndre Noll <maan@systemlinux.org>
Thu, 25 Mar 2010 13:43:20 +0000 (14:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 25 Mar 2010 13:43:20 +0000 (14:43 +0100)
This bug could lead to snapshots with creation time Jan 1 1970.

dss.c

diff --git a/dss.c b/dss.c
index 0a2f55b9fb02035405c791e2343398eeacb78d44..347268e23a22e5db6e2386ba046045ea4266d475 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -161,7 +161,6 @@ static int64_t compute_next_snapshot_time(void)
        struct snapshot *s = NULL;
        struct snapshot_list sl;
 
-       current_snapshot_creation_time = 0;
        dss_get_snapshot_list(&sl);
        FOR_EACH_SNAPSHOT(s, i, &sl) {
                if (!(s->flags & SS_COMPLETE))