trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [1/2] incubator-trafodion git commit: Create directories before copy
Date Mon, 25 Apr 2016 22:39:07 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 9c5c3c3bb -> 1b87aa695


Create directories before copy


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/56f790f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/56f790f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/56f790f5

Branch: refs/heads/master
Commit: 56f790f51f8dc52515f70a692c6f12a556d357c8
Parents: 13a4e37
Author: Kevin Xu <kaihua.xu@esgyn.cn>
Authored: Wed Apr 20 16:02:38 2016 +0800
Committer: Kevin Xu <kaihua.xu@esgyn.cn>
Committed: Wed Apr 20 16:02:38 2016 +0800

----------------------------------------------------------------------
 core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/56f790f5/core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java
----------------------------------------------------------------------
diff --git a/core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java b/core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java
index 5e1e2b2..ed96097 100644
--- a/core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java
+++ b/core/sql/lib_mgmt/src/main/java/org/trafodion/libmgmt/FileMgmt.java
@@ -249,6 +249,7 @@ public class FileMgmt {
 			if (pdsh == null) {
 				pdsh = "/usr/bin/pdsh";
 			}
+			execShell(pdsh + " " + nodes + " mkdir -p " + userPath);
 			execShell(pdcp + " " + nodes + " " + userPath + fileName.trim() + " " + userPath + " ");
 			execShell(pdsh + " " + nodes + " chmod 755 " + userPath + fileName.trim());
 		}


Mime
View raw message