提交 4b4e4411 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Pass Database to new UndoLog()

上级 e7382be6
......@@ -916,7 +916,7 @@ public class Session extends SessionWithState implements TransactionStore.Rollba
}
}
if (undoLog == null) {
undoLog = new UndoLog(this);
undoLog = new UndoLog(database);
}
undoLog.add(log);
}
......
......@@ -30,10 +30,10 @@ public class UndoLog {
/**
* Create a new undo log for the given session.
*
* @param session the session
* @param database the database
*/
UndoLog(Session session) {
this.database = session.getDatabase();
UndoLog(Database database) {
this.database = database;
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论