Author: tomekr
Date: Wed Apr 11 08:06:00 2018
New Revision: 1828872

URL: http://svn.apache.org/viewvc?rev=1828872&view=rev
Log:
OAK-7398: SegmentArchiveManager#listArchives should only return tar files

Modified:
    
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/SegmentTarManager.java

Modified: 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/SegmentTarManager.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/SegmentTarManager.java?rev=1828872&r1=1828871&r2=1828872&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/SegmentTarManager.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/SegmentTarManager.java
 Wed Apr 11 08:06:00 2018
@@ -18,6 +18,7 @@
  */
 package org.apache.jackrabbit.oak.segment.file.tar;
 
+import org.apache.commons.io.filefilter.SuffixFileFilter;
 import org.apache.jackrabbit.oak.segment.spi.monitor.FileStoreMonitor;
 import org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitor;
 import org.apache.jackrabbit.oak.segment.spi.persistence.SegmentArchiveManager;
@@ -73,7 +74,7 @@ public class SegmentTarManager implement
 
     @Override
     public List<String> listArchives() {
-        return Arrays.asList(segmentstoreDir.list());
+        return Arrays.asList(segmentstoreDir.list(new 
SuffixFileFilter(".tar")));
     }
 
     @Override


Reply via email to