提交 8177350d authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unnecessary RowList.invalidateCache()

上级 4f59ccfd
......@@ -199,7 +199,6 @@ public class Update extends Prepared {
// the cached row is already updated - we need the old values
table.updateRows(this, session, rows);
if (table.fireRow()) {
rows.invalidateCache();
for (rows.reset(); rows.hasNext();) {
Row o = rows.next();
Row n = rows.next();
......
......@@ -32,7 +32,6 @@ public class RowList {
private final int maxMemory;
private int memory;
private boolean written;
private boolean readUncached;
/**
* Construct a new row list for this session.
......@@ -170,9 +169,6 @@ public class RowList {
int columnCount = buff.readInt();
long key = buff.readLong();
int version = buff.readInt();
if (readUncached) {
key = 0;
}
boolean deleted = buff.readInt() == 1;
Value[] values = new Value[columnCount];
for (int i = 0; i < columnCount; i++) {
......@@ -243,13 +239,6 @@ public class RowList {
return size;
}
/**
* Do not use the cache.
*/
public void invalidateCache() {
readUncached = true;
}
/**
* Close the result list and delete the temporary file.
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论