Skip to content

Commit 0b86b33

Browse files
committed
rebase to master
1 parent ec09e34 commit 0b86b33

3 files changed

Lines changed: 3 additions & 374 deletions

File tree

core/src/com/cloud/storage/SnapshotVO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ public State getState() {
248248
return state;
249249
}
250250

251+
251252
public void setState(State state) {
252253
this.state = state;
253254
}

server/src/com/cloud/api/commands/GetUsageRecordsCmd.java

Lines changed: 0 additions & 372 deletions
This file was deleted.

server/src/com/cloud/storage/VolumeManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,9 @@ public VolumeVO allocVolume(CreateVolumeCmd cmd)
893893
"unable to find a snapshot with id " + snapshotId);
894894
}
895895

896-
if (snapshotCheck.getStatus() != Snapshot.Status.BackedUp) {
896+
if (snapshotCheck.getState() != Snapshot.State.BackedUp) {
897897
throw new InvalidParameterValueException("Snapshot id="
898-
+ snapshotId + " is not in " + Snapshot.Status.BackedUp
898+
+ snapshotId + " is not in " + Snapshot.State.BackedUp
899899
+ " state yet and can't be used for volume creation");
900900
}
901901

0 commit comments

Comments
 (0)