You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/schema/src/main/java/com/cloud/storage/dao/SnapshotDaoImpl.java
+1-91Lines changed: 1 addition & 91 deletions
Original file line number
Diff line number
Diff line change
@@ -55,16 +55,10 @@ public class SnapshotDaoImpl extends GenericDaoBase<SnapshotVO, Long> implements
55
55
// TODO: we should remove these direct sqls
56
56
privatestaticfinalStringGET_LAST_SNAPSHOT =
57
57
"SELECT snapshots.id FROM snapshot_store_ref, snapshots where snapshots.id = snapshot_store_ref.snapshot_id AND snapshosts.volume_id = ? AND snapshot_store_ref.role = ? ORDER BY created DESC";
58
-
privatestaticfinalStringUPDATE_SNAPSHOT_VERSION = "UPDATE snapshots SET version = ? WHERE volume_id = ? AND version = ?";
59
-
privatestaticfinalStringGET_SECHOST_ID =
60
-
"SELECT store_id FROM snapshots, snapshot_store_ref where snapshots.id = snapshot_store_ref.snapshot_id AND volume_id = ? AND backup_snap_id IS NOT NULL AND sechost_id IS NOT NULL LIMIT 1";
61
-
privatestaticfinalStringUPDATE_SECHOST_ID = "UPDATE snapshots SET sechost_id = ? WHERE data_center_id = ?";
0 commit comments