diff options
| author | Andre Noll <maan@systemlinux.org> | 2010-05-12 10:23:18 +0200 |
|---|---|---|
| committer | Andre Noll <maan@systemlinux.org> | 2010-05-12 10:23:18 +0200 |
| commit | 291aebda9ce76c72053f2f34bbd017161a0b0383 (patch) | |
| tree | 6e4a60e89e8e65779a5c9ec739420d3f5b605793 | |
| parent | 8648fb1996eb395a837753f5b3264c70b668381c (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |
