Author: utkarsh
Date: Mon Dec  3 12:51:22 2007
New Revision: 600681

URL: http://svn.apache.org/viewvc?rev=600681&view=rev
Log:
 PIG-29: fixed bag factory to be properly initialized

Modified:
    incubator/pig/trunk/CHANGES.txt
    incubator/pig/trunk/src/org/apache/pig/data/BagFactory.java

Modified: incubator/pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/pig/trunk/CHANGES.txt?rev=600681&r1=600680&r2=600681&view=diff
==============================================================================
--- incubator/pig/trunk/CHANGES.txt (original)
+++ incubator/pig/trunk/CHANGES.txt Mon Dec  3 12:51:22 2007
@@ -33,3 +33,5 @@
        PIG-14: added heartbeat functionality (olgan)
 
        PIG-17: updated hadoop15.jar to match hadoop 0.15.1 release
+       
+       PIG-29: fixed bag factory to be properly initialized (utkarsh)

Modified: incubator/pig/trunk/src/org/apache/pig/data/BagFactory.java
URL: 
http://svn.apache.org/viewvc/incubator/pig/trunk/src/org/apache/pig/data/BagFactory.java?rev=600681&r1=600680&r2=600681&view=diff
==============================================================================
--- incubator/pig/trunk/src/org/apache/pig/data/BagFactory.java (original)
+++ incubator/pig/trunk/src/org/apache/pig/data/BagFactory.java Mon Dec  3 
12:51:22 2007
@@ -22,9 +22,12 @@
 
 public class BagFactory {
 
-    private File              tmpdir = null;
+    private File              tmpdir;
     private static BagFactory instance = new BagFactory();
 
+    static{
+       init(new File(System.getProperty("java.io.tmpdir")));
+    }
     public static BagFactory getInstance() {
         return instance;
     }


Reply via email to