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
s_logger.debug("Inserted " + rowCount + " snapshots into snapshot_store_ref");
1966
+
1967
+
//backsnap_id for KVM snapshots is complate path. CONCAT is not required
1968
+
snapshotStoreInsert = conn
1969
+
.prepareStatement("INSERT INTO `cloud`.`snapshot_store_ref` (store_id, snapshot_id, created, size, parent_snapshot_id, install_path, volume_id, update_count, ref_cnt, store_role, state) select sechost_id, id, created, size, prev_snap_id, backup_snap_id, volume_id, 0, 0, 'Image', 'Ready' from `cloud`.`snapshots` where status = 'BackedUp' and hypervisor_type = 'KVM' and sechost_id is not null and removed is null");
1970
+
rowCount = snapshotStoreInsert.executeUpdate();
1971
+
s_logger.debug("Inserted " + rowCount + " KVM snapshots into snapshot_store_ref");
1965
1972
}
1966
1973
catch (SQLExceptione) {
1967
1974
Stringmsg = "Unable to migrate snapshot_store_ref." + e.getMessage();
0 commit comments