提交 06332fe1 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove BaseIndex.isMultiVersion

上级 648bb0ec
...@@ -36,7 +36,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index { ...@@ -36,7 +36,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
protected int[] columnIds; protected int[] columnIds;
protected Table table; protected Table table;
protected IndexType indexType; protected IndexType indexType;
protected boolean isMultiVersion;
/** /**
* Initialize the base index. * Initialize the base index.
...@@ -350,11 +349,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index { ...@@ -350,11 +349,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
long k1 = rowData.getKey(); long k1 = rowData.getKey();
long k2 = compare.getKey(); long k2 = compare.getKey();
if (k1 == k2) { if (k1 == k2) {
if (isMultiVersion) {
int v1 = rowData.getVersion();
int v2 = compare.getVersion();
return Integer.compare(v2, v1);
}
return 0; return 0;
} }
return k1 > k2 ? 1 : -1; return k1 > k2 ? 1 : -1;
...@@ -457,10 +451,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index { ...@@ -457,10 +451,6 @@ public abstract class BaseIndex extends SchemaObjectBase implements Index {
// nothing to do // nothing to do
} }
void setMultiVersion(boolean multiVersion) {
this.isMultiVersion = multiVersion;
}
@Override @Override
public Row getRow(Session session, long key) { public Row getRow(Session session, long key) {
throw DbException.getUnsupportedException(toString()); throw DbException.getUnsupportedException(toString());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论