提交 2cdee129 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove no-op Index.commit()

上级 a729e2cd
......@@ -928,11 +928,6 @@ public class Session extends SessionWithState implements TransactionStore.Rollba
undoLog.add(log);
} else {
if (database.isMVStore()) {
// see also UndoLogRecord.commit
ArrayList<Index> indexes = table.getIndexes();
for (Index index : indexes) {
index.commit(operation, row);
}
row.commit();
}
}
......
......@@ -446,11 +446,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
return table;
}
@Override
public void commit(int operation, Row row) {
// nothing to do
}
@Override
public Row getRow(Session session, long key) {
throw DbException.getUnsupportedException(toString());
......
......@@ -244,15 +244,6 @@ public interface Index extends SchemaObject {
*/
Table getTable();
/**
* Commit the operation for a row. This is only important for multi-version
* indexes. The method is only called if multi-version is enabled.
*
* @param operation the operation type
* @param row the row
*/
void commit(int operation, Row row);
/**
* Get the row with the given key.
*
......
......@@ -145,9 +145,6 @@ public class RegularTable extends TableBase {
@Override
public void commit(short operation, Row row) {
lastModificationId = database.getNextModificationDataId();
for (Index index : indexes) {
index.commit(operation, row);
}
}
private void checkRowCount(Session session, Index index, int offset) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论