提交 afd1a870 编写于 作者: A Arthur Neves

Remove parent transaction state

As far as I can tell nobody is setting this variable.
上级 4e68681c
module ActiveRecord
module ConnectionAdapters
class TransactionState
attr_reader :parent
VALID_STATES = Set.new([:committed, :rolledback, nil])
def initialize(state = nil)
@state = state
@parent = nil
end
def finalized?
......
......@@ -521,10 +521,6 @@ def update_attributes_from_transaction_state(transaction_state, depth)
clear_transaction_record_state
@reflects_state[depth] = true
end
if transaction_state.parent
update_attributes_from_transaction_state(transaction_state.parent, depth+1)
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册