]> git.tuebingen.mpg.de Git - dss.git/commit
Reuse old rsync argv if rsync has to be restarted.
authorAndre Noll <maan@systemlinux.org>
Thu, 25 Mar 2010 13:49:47 +0000 (14:49 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 25 Mar 2010 13:49:47 +0000 (14:49 +0100)
commitd28be18d969b6e72021e7229be49c02d3b549794
treeb8047c7c2d9b86d6b4e55fc4a7a78d2914c1c76a
parent946b0e9799985b7204076c5a6051456a44b6a04d
Reuse old rsync argv if rsync has to be restarted.

If rsync must be restarted due to an exit code of 12 or 13,
create_rsync_argv() was called even if the old rsync_argv should
be reused in this case. This (correctly) triggers the assertion

assert(!name_of_reference_snapshot);

in create_rsync_argv(). Fix this by not calling create_rsync_argv()
if there is a reference snapshot.
dss.c