This is an automated email from the ASF dual-hosted git repository.
jinrongtong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-spring.git
The following commit(s) were added to refs/heads/master by this push:
new 77518d2 [ISSUE #304] Fix the correspondence between enumerations and
numbers.
77518d2 is described below
commit 77518d298f32b6ce49c5b42a07eec1e18f285c81
Author: CharliePu <[email protected]>
AuthorDate: Wed Nov 11 07:53:42 2020 +0800
[ISSUE #304] Fix the correspondence between enumerations and numbers.
---
.../org/apache/rocketmq/samples/springboot/ProducerApplication.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/rocketmq-spring-boot-samples/rocketmq-produce-demo/src/main/java/org/apache/rocketmq/samples/springboot/ProducerApplication.java
b/rocketmq-spring-boot-samples/rocketmq-produce-demo/src/main/java/org/apache/rocketmq/samples/springboot/ProducerApplication.java
index 46ac5ab..f8140d4 100644
---
a/rocketmq-spring-boot-samples/rocketmq-produce-demo/src/main/java/org/apache/rocketmq/samples/springboot/ProducerApplication.java
+++
b/rocketmq-spring-boot-samples/rocketmq-produce-demo/src/main/java/org/apache/rocketmq/samples/springboot/ProducerApplication.java
@@ -257,13 +257,13 @@ public class ProducerApplication implements
CommandLineRunner {
if (null != status) {
switch (status) {
case 0:
- retState = RocketMQLocalTransactionState.UNKNOWN;
+ retState = RocketMQLocalTransactionState.COMMIT;
break;
case 1:
- retState = RocketMQLocalTransactionState.COMMIT;
+ retState = RocketMQLocalTransactionState.ROLLBACK;
break;
case 2:
- retState = RocketMQLocalTransactionState.ROLLBACK;
+ retState = RocketMQLocalTransactionState.UNKNOWN;
break;
}
}