Code-Fight commented on code in PR #897:
URL:
https://github.com/apache/incubator-seata-go/pull/897#discussion_r2410436248
##########
pkg/saga/statemachine/statelang/state_instance.go:
##########
@@ -319,7 +319,10 @@ func (s *StateInstanceImpl) SetIgnoreStatus(ignoreStatus
bool) {
}
func (s *StateInstanceImpl) IsForCompensation() bool {
- return s.stateIdCompensatedFor == ""
+ // A state instance is considered a compensation execution if it points
+ // back to an original forward state via stateIdCompensatedFor.
+ // When this field is non-empty, this instance is a compensation.
+ return s.stateIdCompensatedFor != ""
Review Comment:
注释只是为了说明。实际是一致的
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]