You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/01/09 18:52:33 UTC
[GitHub] khos2ow commented on a change in pull request #2398: CLOUDSTACK-10222: Clean previous snaphosts from primary storage when ?
khos2ow commented on a change in pull request #2398: CLOUDSTACK-10222: Clean previous snaphosts from primary storage when ?
URL: https://github.com/apache/cloudstack/pull/2398#discussion_r160494001
##########
File path: plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/Xenserver625StorageProcessor.java
##########
@@ -576,13 +578,20 @@ public Answer backupSnapshot(final CopyCommand cmd) {
s_logger.info("New snapshot details: " + newSnapshot.toString());
s_logger.info("New snapshot physical utilization: "+physicalSize);
+ successful = true;
+
return new CopyCmdAnswer(newSnapshot);
} catch (final Types.XenAPIException e) {
details = "BackupSnapshot Failed due to " + e.toString();
s_logger.warn(details, e);
} catch (final Exception e) {
Review comment:
Actually not, there are multiple other exceptions can be thrown which this block should catch them. The difference is that `Types.XenAPIException` doesn't have a meaningful `getMessage()` method. I'll combine them together though.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services