Commit b777a65d authored by Joan Piles's avatar Joan Piles

don't die on failure, try to keep with the schedule

parent 5bb7de69
......@@ -99,19 +99,18 @@ func subcmdRun() (ferr error) {
case lastGood = <-lastGoodOut:
sn, err := CreateSnapshot(lastGood)
if err != nil || sn == nil {
Debugf("snapshot creation finally failed (%s), exit loop", err)
createError = err
go func() { createExit <- true; return }()
} else {
lastGoodIn <- sn
Debugf("pruning")
prune(obsoleteQueue, cl)
// If we purge automatically all the expired snapshots,
// there's nothing to remove to free space.
if config.NoPurge {
Debugf("checking space constraints")
freeSpaceCheck <- struct{}{}
}
Debugf("snapshot creation finally failed (%s), the partial transfer will hopefully be reused", err)
//createError = err
//go func() { createExit <- true; return }()
}
lastGoodIn <- sn
Debugf("pruning")
prune(obsoleteQueue, cl)
// If we purge automatically all the expired snapshots,
// there's nothing to remove to free space.
if config.NoPurge {
Debugf("checking space constraints")
freeSpaceCheck <- struct{}{}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment