don't use same state in Validate for refreshState
This commit is contained in:
parent
8c699fbe32
commit
8dc6f518c2
|
@ -743,12 +743,11 @@ func (c *Context) graphWalker(operation walkOperation) *ContextGraphWalker {
|
||||||
switch operation {
|
switch operation {
|
||||||
case walkValidate:
|
case walkValidate:
|
||||||
// validate should not use any state
|
// validate should not use any state
|
||||||
s := states.NewState()
|
state = states.NewState().SyncWrapper()
|
||||||
state = s.SyncWrapper()
|
|
||||||
|
|
||||||
// validate currently uses the plan graph, so we have to populate the
|
// validate currently uses the plan graph, so we have to populate the
|
||||||
// refreshState.
|
// refreshState.
|
||||||
refreshState = s.SyncWrapper()
|
refreshState = states.NewState().SyncWrapper()
|
||||||
|
|
||||||
case walkPlan:
|
case walkPlan:
|
||||||
state = c.state.SyncWrapper()
|
state = c.state.SyncWrapper()
|
||||||
|
|
Loading…
Reference in New Issue