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
{{ message }}
Repository navigation
Commit 50ee981
Browse filesBrowse the repository at this point in the historyBrowse files
CLOUDSTACK-6826: Improving the download url expiration where the expiration work would be handled by the ssvm that has the corresponding symlink created on it. In case it doesnt exist, then would be any one of the ssvm in the zone.
Also when the ssvm is destroyed all the download urls are expired to be cleaned up in the next run by the new ssvm.
(cherry picked from commit ce90837)
privatestaticfinalStringEXPIRE_DOWNLOAD_URLS_FOR_ZONE = "update template_store_ref set download_url_created=? where store_id in (select id from image_store where data_center_id=?)";
67
69
68
70
@Inject
69
71
privateDataStoreManager_storeMgr;
@@ -511,4 +513,22 @@ public List<TemplateDataStoreVO> listTemplateDownloadUrls() {
privatestaticfinalStringEXPIRE_DOWNLOAD_URLS_FOR_ZONE = "update volume_store_ref set download_url_created=? where store_id in (select id from image_store where data_center_id=?)";
56
+
54
57
55
58
@Inject
56
59
DataStoreManagerstoreMgr;
@@ -267,4 +270,22 @@ public List<VolumeDataStoreVO> listVolumeDownloadUrls() {
Copy file name to clipboardExpand all lines: plugins/storage/image/default/src/org/apache/cloudstack/storage/datastore/driver/CloudStackImageStoreDriverImpl.java
Copy file name to clipboardExpand all lines: services/secondary-storage/controller/src/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
0 commit comments