chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r765723 - /hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
Date Thu, 16 Apr 2009 19:14:18 GMT
Author: eyang
Date: Thu Apr 16 19:14:18 2009
New Revision: 765723

URL: http://svn.apache.org/viewvc?rev=765723&view=rev
Log:
CHUKWA-122. Updated logic for finding time partition for Macro.  (Eric Yang)

Modified:
    hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java

Modified: hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java?rev=765723&r1=765722&r2=765723&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
(original)
+++ hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
Thu Apr 16 19:14:18 2009
@@ -88,9 +88,7 @@
                 if(cluster==null) {
                     cluster="unknown";
                 }
-                if(db==null) {
-                    db = new DatabaseWriter(cluster);
-                }
+                db = new DatabaseWriter(cluster);
                 DatabaseMetaData dbMetaData = db.getConnection().getMetaData();
                 ResultSet rs = dbMetaData.getColumns ( null,null,table[0], null);
                 boolean first=true;



Mime
View raw message