is_attr_indexed
if (is_attr_indexed(attr))
if (!diff && !is_attr_indexed(attr))
if (ni && is_attr_indexed(attr) && attr->type == ATTR_NAME) {