From 291aebda9ce76c72053f2f34bbd017161a0b0383 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 12 May 2010 10:23:18 +0200 Subject: [PATCH] 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. --- dss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2