diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 10:48:16 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-21 10:48:16 +0000 |
commit | 1542803320c9ca3f5af5bbaacde1ef9d5beb8858 (patch) | |
tree | 00497bce0dee115642f918ad32334fca213adf7e /bin/bbackupd/BackupClientDirectoryRecord.cpp | |
parent | 8199ad7ecef4debc5dcefbf1b27a791a78461f7d (diff) |
Propagate BackupStoreException::SignalReceived up to BackupDaemon to
abort the run, rather than treating it as a failure to upload a single
file.
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.cpp')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index f1bbdceb..d43155a2 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -960,6 +960,14 @@ bool BackupClientDirectoryRecord::UpdateItems( } catch(BoxException &e) { + if (e.GetType() == BackupStoreException::ExceptionType && + e.GetSubType() == BackupStoreException::SignalReceived) + { + // abort requested, pass the + // exception on up. + throw; + } + // an error occured -- make return // code false, to show error in directory allUpdatedSuccessfully = false; |