Fix silly mistake

This commit is contained in:
Nik Everett 2015-09-23 17:25:37 -04:00
parent 65041a8121
commit aa06433868
1 changed files with 2 additions and 1 deletions

View File

@ -165,6 +165,7 @@ public class MapperService extends AbstractIndexComponent implements Closeable {
}
}
@Override
public void close() {
for (DocumentMapper documentMapper : mappers.values()) {
documentMapper.close();
@ -290,7 +291,7 @@ public class MapperService extends AbstractIndexComponent implements Closeable {
Set<String> parentTypesCopy = new HashSet<String>();
parentTypesCopy.addAll(parentTypes);
parentTypesCopy.add(mapper.parentFieldMapper().type());
parentTypes = unmodifiableSet(parentTypes);
parentTypes = unmodifiableSet(parentTypesCopy);
}
assert assertSerialization(mapper);
return mapper;