Patch PRepStatusState for quick rejection
@@ -412,14 +412,18 @@ type PRepStatusState struct {
}
func (ps *PRepStatusState) Reset(ss *PRepStatusSnapshot) *PRepStatusState {
+ if ps.last != ss {
ps.last = ss
ps.prepStatusData = ss.prepStatusData.clone()
+ }
return ps
}
func (ps *PRepStatusState) setDirty() {
+ if ps.last != nil {
ps.last = nil
}
+}
func (ps *PRepStatusState) Clear() {
ps.Reset(emptyPRepStatusSnapshot)
