From: Andre Noll Date: Wed, 12 May 2010 08:23:18 +0000 (+0200) Subject: Skip unnecessary check whether next snapshot is due. X-Git-Tag: v0.1.4~6 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=291aebda9ce76c72053f2f34bbd017161a0b0383 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. --- 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, ¤t_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;