Fix silly mistake
This commit is contained in:
parent
65041a8121
commit
aa06433868
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue