提交 820d98dd authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Use setSavepoint() in addSavepoint()

上级 2bc448b8
...@@ -1093,14 +1093,7 @@ public class Session extends SessionWithState implements TransactionStore.Rollba ...@@ -1093,14 +1093,7 @@ public class Session extends SessionWithState implements TransactionStore.Rollba
if (savepoints == null) { if (savepoints == null) {
savepoints = database.newStringMap(); savepoints = database.newStringMap();
} }
Savepoint sp = new Savepoint(); savepoints.put(name, setSavepoint());
if (undoLog != null) {
sp.logIndex = undoLog.size();
}
if (database.getMvStore() != null) {
sp.transactionSavepoint = getStatementSavepoint();
}
savepoints.put(name, sp);
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论