summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2010-05-12 10:23:18 +0200
committerAndre Noll <maan@systemlinux.org>2010-05-12 10:23:18 +0200
commit291aebda9ce76c72053f2f34bbd017161a0b0383 (patch)
tree6e4a60e89e8e65779a5c9ec739420d3f5b605793
parent8648fb1996eb395a837753f5b3264c70b668381c (diff)
Skip unnecessary check whether next snapshot is due.
If the status of the create hook is PRE_SUCCESS, we _know_ that the next snapshot is due.
-rw-r--r--dss.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dss.c b/dss.c
index c02658b..e4415f5 100644
--- a/dss.c
+++ b/dss.c
@@ -1126,7 +1126,10 @@ static int select_loop(void)
free_rsync_argv(rsync_argv);
create_rsync_argv(&rsync_argv, &current_snapshot_creation_time);
}
- /* fall through */
+ ret = create_snapshot(rsync_argv);
+ if (ret < 0)
+ goto out;
+ continue;
case HS_NEEDS_RESTART:
if (!next_snapshot_is_due())
continue;