You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by zh...@apache.org on 2017/03/10 01:01:45 UTC

ranger git commit: RANGER-1439:Spelling error for "fileStats" in the hdfs-agent\src\main\java\org\apache\ranger\services\hdfs\client\HdfsClient.java. "fileStatus" instead of "fileStats".

Repository: ranger
Updated Branches:
  refs/heads/master 6d862ed43 -> d5e5ad5f8


RANGER-1439:Spelling error for "fileStats" in the hdfs-agent\src\main\java\org\apache\ranger\services\hdfs\client\HdfsClient.java. "fileStatus" instead of "fileStats".

Signed-off-by: zhangqiang2 <zh...@zte.com.cn>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/d5e5ad5f
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/d5e5ad5f
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/d5e5ad5f

Branch: refs/heads/master
Commit: d5e5ad5f892dea696740bd6834b3c96b213498e1
Parents: 6d862ed
Author: zhangqiang2 <zh...@zte.com.cn>
Authored: Thu Mar 9 14:19:34 2017 +0800
Committer: zhangqiang2 <zh...@zte.com.cn>
Committed: Thu Mar 9 20:01:02 2017 -0500

----------------------------------------------------------------------
 .../apache/ranger/services/hdfs/client/HdfsClient.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/d5e5ad5f/hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/client/HdfsClient.java
----------------------------------------------------------------------
diff --git a/hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/client/HdfsClient.java b/hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/client/HdfsClient.java
index 4db0ec1..c5331a3 100644
--- a/hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/client/HdfsClient.java
+++ b/hdfs-agent/src/main/java/org/apache/ranger/services/hdfs/client/HdfsClient.java
@@ -80,17 +80,17 @@ public class HdfsClient extends BaseClient {
 				fs = FileSystem.get(conf);
 
 				Path basePath = new Path(baseDir);
-				FileStatus[] fileStats = fs.listStatus(basePath);
+				FileStatus[] fileStatus = fs.listStatus(basePath);
 
 				if(LOG.isDebugEnabled()) {
-					LOG.debug("<== HdfsClient fileStatus : " + fileStats.length + " PathList :" + pathList);
+					LOG.debug("<== HdfsClient fileStatus : " + fileStatus.length + " PathList :" + pathList);
 				}
 
-				if (fileStats != null) {
-					if (fs.exists(basePath) && ArrayUtils.isEmpty(fileStats))  {
+				if (fileStatus != null) {
+					if (fs.exists(basePath) && ArrayUtils.isEmpty(fileStatus))  {
 						fileList.add(basePath.toString());
 					} else {
-						for(FileStatus stat : fileStats) {
+						for(FileStatus stat : fileStatus) {
 								Path path = stat.getPath();
 								String pathComponent = path.getName();
 								String prefixedPath = dirPrefix + pathComponent;