}
} else {
index = new TreeIndex(this, indexId, indexName, cols, indexType);
}
if (database.isMultiVersion()) {
index = new MultiVersionIndex(index, this);
}
rebuildIfNeed(session, index, indexName);
index.setTemporary(isTemporary());
if (index.getCreateSQL() != null) {
index.setComment(indexComment);