accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject git commit: ACCUMULO-3003 include the dot in the rfile extension check
Date Thu, 17 Jul 2014 17:48:59 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.1-SNAPSHOT fc92b2514 -> 5681c40fa


ACCUMULO-3003 include the dot in the rfile extension check


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

Branch: refs/heads/1.6.1-SNAPSHOT
Commit: 5681c40fa2ceb9b3500eb165d2cdc0ca787a86c7
Parents: fc92b25
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Thu Jul 17 13:48:33 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Thu Jul 17 13:48:33 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/accumulo/server/fs/VolumeManagerImpl.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/5681c40f/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeManagerImpl.java
b/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeManagerImpl.java
index 6e8439f..0cfb457 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeManagerImpl.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeManagerImpl.java
@@ -528,6 +528,8 @@ public class VolumeManagerImpl implements VolumeManager {
     return getFullPath(FileType.TABLE, path);
   }
 
+  private static final String RFILE_SUFFIX = "." + RFile.EXTENSION;
+
   @Override
   public Path getFullPath(FileType fileType, String path) {
     int colon = path.indexOf(':');
@@ -550,7 +552,7 @@ public class VolumeManagerImpl implements VolumeManager {
       String[] pathComponents = StringUtils.split(path, Path.SEPARATOR_CHAR);
 
       // Is an rfile
-      if (path.endsWith(RFile.EXTENSION)) {
+      if (path.endsWith(RFILE_SUFFIX)) {
         if (pathComponents.length < 3) {
           throw new IllegalArgumentException("Fewer components in file path than expected");
         }


Mime
View raw message