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

Remove unnecessary RowList.invalidateCache()

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