hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r1469664 - /hadoop/common/branches/HDFS-2802/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SnapshotCommands.java
Date Fri, 19 Apr 2013 02:07:53 GMT
Author: szetszwo
Date: Fri Apr 19 02:07:52 2013
New Revision: 1469664

URL: http://svn.apache.org/r1469664
Log:
HDFS-4717. Change the path parameter type of the snapshot methods in HdfsAdmin from String
to Path.

Modified:
    hadoop/common/branches/HDFS-2802/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SnapshotCommands.java

Modified: hadoop/common/branches/HDFS-2802/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SnapshotCommands.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-2802/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SnapshotCommands.java?rev=1469664&r1=1469663&r2=1469664&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-2802/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SnapshotCommands.java
(original)
+++ hadoop/common/branches/HDFS-2802/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SnapshotCommands.java
Fri Apr 19 02:07:52 2013
@@ -23,6 +23,7 @@ import java.util.LinkedList;
 
 import org.apache.hadoop.classification.InterfaceAudience;
 import org.apache.hadoop.classification.InterfaceStability;
+import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.fs.PathIsNotDirectoryException;
 
 import com.google.common.base.Preconditions;
@@ -83,7 +84,8 @@ class SnapshotCommands extends FsCommand
       }
       assert(items.size() == 1);
       PathData sroot = items.getFirst();
-      sroot.fs.createSnapshot(sroot.path, snapshotName);
+      Path snapshotPath = sroot.fs.createSnapshot(sroot.path, snapshotName);
+      out.println("Created snapshot " + snapshotPath);
     }    
   }
 



Mime
View raw message