Skip to content

Commit bc4090b

Browse files
author
gitlab
committed
Merge branch 'fix-ZSTAC-79756@@2' into '5.5.12'
<fix>[sharedblock]: convert memory snapshot install path from absolute path to protocol path See merge request zstackio/zstack!8687
2 parents 1912469 + 7b302df commit bc4090b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

conf/db/upgrade/V5.5.12__schema.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ CREATE TABLE IF NOT EXISTS `zstack`.`ExternalServiceConfigurationVO` (
4444
`createDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
4545
PRIMARY KEY (`uuid`)
4646
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
47+
48+
UPDATE VolumeSnapshotVO AS sp, PrimaryStorageVO AS ps
49+
SET sp.primaryStorageInstallPath = REPLACE(sp.primaryStorageInstallPath, '/dev/', 'sharedblock://')
50+
WHERE sp.primaryStorageUuid = ps.uuid AND ps.type = 'SharedBlock' AND sp.volumeType = 'Memory' AND sp.primaryStorageInstallPath LIKE '/dev/%';

0 commit comments

Comments
 (0)