Shubhendu Tripathi has uploaded a new change for review. Change subject: gluster: Default de-activate volume snapshot after creation ......................................................................
gluster: Default de-activate volume snapshot after creation The gluster volume snapshots should be in deactivated state after creation. Modified to mark the newly created volume snapshots as deactivated. Change-Id: I5c3efe787a979839456232331c673684c0184178 Signed-off-by: Shubhendu Tripathi <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/23/38923/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java index 080581b..e4bb1b2 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java @@ -109,7 +109,7 @@ slaveVolumeSnapshot.setSnapshotId((Guid) snapCreationRetVal.getReturnValue()); slaveVolumeSnapshot.setSnapshotName(snapshot.getSnapshotName()); slaveVolumeSnapshot.setDescription(snapshot.getDescription()); - slaveVolumeSnapshot.setStatus(GlusterSnapshotStatus.ACTIVATED); + slaveVolumeSnapshot.setStatus(GlusterSnapshotStatus.DEACTIVATED); slaveVolumeSnapshot.setCreatedAt(new Date()); getDbFacade().getGlusterVolumeSnapshotDao().save(slaveVolumeSnapshot); } @@ -152,7 +152,7 @@ } else { GlusterVolumeSnapshotEntity createdSnapshot = getParameters().getSnapshot(); createdSnapshot.setSnapshotId((Guid) retVal.getReturnValue()); - createdSnapshot.setStatus(GlusterSnapshotStatus.ACTIVATED); + createdSnapshot.setStatus(GlusterSnapshotStatus.DEACTIVATED); createdSnapshot.setCreatedAt(new Date()); getDbFacade().getGlusterVolumeSnapshotDao().save(createdSnapshot); } -- To view, visit https://gerrit.ovirt.org/38923 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5c3efe787a979839456232331c673684c0184178 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Shubhendu Tripathi <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
