cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r772020 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Date Wed, 06 May 2009 00:35:33 GMT
Author: jbellis
Date: Wed May  6 00:35:33 2009
New Revision: 772020

URL: http://svn.apache.org/viewvc?rev=772020&view=rev
Log:
initialize configFileName_.  patch by Sandeep Tata; reviewed by jbellis for CASSANDRA-129

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java?rev=772020&r1=772019&r2=772020&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
(original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Wed May  6 00:35:33 2009
@@ -124,8 +124,8 @@
     {
         try
         {
-            String file = System.getProperty("storage-config") + System.getProperty("file.separator")
+ "storage-conf.xml";
-            XMLUtils xmlUtils = new XMLUtils(file);
+            configFileName_ = System.getProperty("storage-config") + System.getProperty("file.separator")
+ "storage-conf.xml";
+            XMLUtils xmlUtils = new XMLUtils(configFileName_);
 
             /* Cluster Name */
             clusterName_ = xmlUtils.getNodeValue("/Storage/ClusterName");



Mime
View raw message