From e980bad97ef9ca3f9d9105bda4a2d34940bc0f9c Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Wed, 8 Jun 2016 11:59:42 +0000
Subject: [PATCH] SSDM-3678: storeLinksOnly = true as default.

SVN: 36652
---
 .../cisd/etlserver/plugins/HierarchicalStorageUpdater.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/plugins/HierarchicalStorageUpdater.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/plugins/HierarchicalStorageUpdater.java
index 542c8d17aad..999fc351d8c 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/plugins/HierarchicalStorageUpdater.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/plugins/HierarchicalStorageUpdater.java
@@ -137,7 +137,7 @@ public class HierarchicalStorageUpdater implements IDataStoreLockingMaintenanceT
         storeRoot = new File(storeRootFileName);
         hierarchyRoot = new File(hierarchyRootFileName);
         linkSourceDescriptors = initializeLinkSourceDescriptors(pluginProperties);
-        storeLinksOnly = pluginProperties.getProperty(LINKS_ONLY, hierarchyRootFileName).equals("true");
+        storeLinksOnly = PropertyUtils.getBoolean(pluginProperties, LINKS_ONLY, true);
 
         operationLog.info("Plugin initialized with: store root = " + storeRootFileName
                 + ", hierarchy root = " + hierarchyRootFileName);
@@ -249,7 +249,8 @@ public class HierarchicalStorageUpdater implements IDataStoreLockingMaintenanceT
     private void handleExistingEntry(DataSetInformation info)
     {
         String errorMsgLinksOnlyModeChanged = "The state of hierarchical store is corrupted or property '" + LINKS_ONLY
-                + "' has been modified after hierarchical store has been built. In this case please the hierarchical store directory and it will be recreated.";
+                + "' has been modified after hierarchical store has been built. In this case the hierarchical store directory "
+                + "should be deleted manually. It will be recreated after DSS start up.";
         if (storeLinksOnly)
         {
             if (FileUtilities.isSymbolicLink(info.targetFile))
-- 
GitLab