incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixing issue with the usage.
Date Tue, 13 Jan 2015 01:46:33 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 04236cfb5 -> 0b08c1f3b


Fixing issue with the  usage.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/0b08c1f3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/0b08c1f3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/0b08c1f3

Branch: refs/heads/master
Commit: 0b08c1f3b5152022cd22a85c91d6fa486ed98913
Parents: 04236cf
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Jan 12 20:43:03 2015 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Jan 12 20:43:03 2015 -0500

----------------------------------------------------------------------
 blur-core/src/main/java/org/apache/blur/thrift/ThriftServer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/0b08c1f3/blur-core/src/main/java/org/apache/blur/thrift/ThriftServer.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/thrift/ThriftServer.java b/blur-core/src/main/java/org/apache/blur/thrift/ThriftServer.java
index 1fa0258..94967ec 100644
--- a/blur-core/src/main/java/org/apache/blur/thrift/ThriftServer.java
+++ b/blur-core/src/main/java/org/apache/blur/thrift/ThriftServer.java
@@ -128,7 +128,7 @@ public class ThriftServer {
     } else {
       tmp = new File(blurHomeDir, "tmp");
       LOG.info("Attempting to use configured tmp directory [{0}]", tmp);
-      if (!tmp.mkdirs()) {
+      if (!tmp.exists() && !tmp.mkdirs()) {
         tmp = getTmpDir();
         LOG.info("Attempting to use default tmp directory [{0}]", tmp);
       }


Mime
View raw message