Avoid busy loop on rsync exit status 12 or 13.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Mar 2010 14:47:07 +0000 (15:47 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 12 Mar 2010 14:47:07 +0000 (15:47 +0100)
commitfd7ab0475e24ec414883bf3772db160869ed2e0c
tree01f83a8cfb8e1504f6c842fa97e137e755b79216
parent50f26b35ac30d13240d501eba6dae819a9a400c7
Avoid busy loop on rsync exit status 12 or 13.

Although we set the next snapshot time to now + 60 seconds in case
rsync exits with exit status 12 or 13, we miss to check this time
barrier in case the snapshot creation status is HS_NEEDS_RESTART.

Fix this by adding an additional check in the switch() statement
of the select loop. As this change would trigger the assertion

snapshot_creation_status == HS_READY

in next_snapshot_is_due(), remove this assertion.
dss.c