Rename method in OldIndexUtils
loadIndexList -> loadDataFilesList. The new method name is more accurate.
This commit is contained in:
parent
4885709e10
commit
549ca3178b
|
@ -103,8 +103,8 @@ public class OldIndexBackwardsCompatibilityIT extends ESIntegTestCase {
|
|||
|
||||
@Before
|
||||
public void initIndexesList() throws Exception {
|
||||
indexes = OldIndexUtils.loadIndexesList("index", getBwcIndicesPath());
|
||||
unsupportedIndexes = OldIndexUtils.loadIndexesList("unsupported", getBwcIndicesPath());
|
||||
indexes = OldIndexUtils.loadDataFilesList("index", getBwcIndicesPath());
|
||||
unsupportedIndexes = OldIndexUtils.loadDataFilesList("unsupported", getBwcIndicesPath());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
|
|
|
@ -61,7 +61,7 @@ import static org.junit.Assert.assertEquals;
|
|||
|
||||
public class OldIndexUtils {
|
||||
|
||||
public static List<String> loadIndexesList(String prefix, Path bwcIndicesPath) throws IOException {
|
||||
public static List<String> loadDataFilesList(String prefix, Path bwcIndicesPath) throws IOException {
|
||||
List<String> indexes = new ArrayList<>();
|
||||
try (DirectoryStream<Path> stream = Files.newDirectoryStream(bwcIndicesPath, prefix + "-*.zip")) {
|
||||
for (Path path : stream) {
|
||||
|
|
Loading…
Reference in New Issue