提交 88b00aa0 authored 作者: Thomas Mueller's avatar Thomas Mueller

Bugfix & improved test case.

上级 61663340
......@@ -821,7 +821,8 @@ public class TransactionStore {
while (cursor.hasNext()) {
K key = cursor.next();
VersionedValue data = cursor.getValue();
if (getValue(key, readLogId, data) != null) {
data = getValue(key, readLogId, data);
if (data != null && data.value != null) {
size++;
}
}
......
......@@ -350,7 +350,9 @@ public class TestTransaction extends TestBase {
break;
case 1:
if (count[tableId] > 0) {
stat.execute("DELETE FROM " + table + " WHERE ID=SELECT MIN(ID) FROM " + table);
int updateCount = stat.executeUpdate(
"DELETE FROM " + table + " WHERE ID=SELECT MIN(ID) FROM " + table);
assertEquals(1, updateCount);
count[tableId]--;
}
break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论