Fix Lucene index delete
@@ -357,7 +357,7 @@ public abstract class OLuceneIndexEngineAbstract extends OSharedResourceAdaptive
String indexPath = directory.getPath();
if (indexPath != null) {
File indexDir = new File(indexPath);
- try (final FileSystem fileSystem = FileSystems.getDefault()) {
+ final FileSystem fileSystem = FileSystems.getDefault();
while (true) {
if (Files.isSameFile(fileSystem.getPath(baseStoragePath.getCanonicalPath()),
fileSystem.getPath(indexDir.getCanonicalPath()))) {
@@ -375,7 +375,6 @@ public abstract class OLuceneIndexEngineAbstract extends OSharedResourceAdaptive
}
}
}
- }
@Override
public String indexName() {
