if not deleting an index, don't delete the gateway data...

This commit is contained in:
kimchy 2010-05-03 18:11:19 +03:00
parent 7564453fcb
commit aae4e4ab61
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ public class FsIndexGateway extends AbstractIndexComponent implements IndexGatew
}
@Override public void close(boolean delete) {
if (!delete) {
return;
}
try {
String[] files = indexGatewayHome.list();
if (files == null || files.length == 0) {