Skip to content

Commit 2aa9d9e

Browse files
author
shan.wu
committed
<fix>[sharedblock]: convert memory snapshot install path from absolute path to protocol path
convert memory snapshot install path from absolute path to protocol path Resolves/Related: ZSTAC-79756 Change-Id: I6e626d68626461627a737765786a676e6b617064
1 parent 4a2c551 commit 2aa9d9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
UPDATE VolumeSnapshotVO AS sp, PrimaryStorageVO AS ps
2+
SET sp.primaryStorageInstallPath = REPLACE(sp.primaryStorageInstallPath, '/dev/', 'sharedblock://')
3+
WHERE sp.primaryStorageUuid = ps.uuid AND ps.type = 'SharedBlock' AND sp.volumeType = 'Memory' AND sp.primaryStorageInstallPath LIKE '/dev/%';

0 commit comments

Comments
 (0)