cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <...@git.apache.org>
Subject [GitHub] cloudstack pull request #1615: CLOUDSTACK-9438: Fix for CLOUDSTACK-9252 - Ma...
Date Fri, 05 Aug 2016 21:59:36 GMT
Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1615#discussion_r73765615
  
    --- Diff: server/src/com/cloud/storage/ImageStoreDetailsUtil.java ---
    @@ -20,48 +20,68 @@
     
     import javax.inject.Inject;
     
    +import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
    +import org.apache.cloudstack.framework.config.impl.ConfigurationVO;
     import org.apache.cloudstack.storage.datastore.db.ImageStoreDao;
     import org.apache.cloudstack.storage.datastore.db.ImageStoreDetailsDao;
     import org.apache.cloudstack.storage.datastore.db.ImageStoreVO;
     
    +import com.cloud.capacity.CapacityManager;
    +
     public class ImageStoreDetailsUtil {
     
         @Inject
         protected ImageStoreDao imageStoreDao;
         @Inject
         protected ImageStoreDetailsDao imageStoreDetailsDao;
    +    @Inject
    +    protected ConfigurationDao configurationDao;
     
         /**
    -     * Obtain NFS protocol version (if provided) for a store id.<br/>
    -     * It can be set by adding an entry in {@code image_store_details} table, providing
{@code name=nfs.version} and {@code value=X} (e.g. 3)
    +     * Retrieve global secondary storage NFS version default value
    +     * @return global default value
    +     */
    +    protected Integer getGlobalDefaultNfsVersion(){
    +        ConfigurationVO globalNfsVersion = configurationDao.findByName(CapacityManager.ImageStoreNFSVersion.key());
    +        String value = globalNfsVersion.getValue();
    --- End diff --
    
    What if ``globalNfsVersion`` is null?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message