From d1028dad0b6b5c3bf729191f7dfd181f8c700d49 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Fri, 29 Oct 2021 10:16:05 +0800 Subject: [PATCH] add more status --- dtmcli/consts.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dtmcli/consts.go b/dtmcli/consts.go index 8d2b1d7..5cbb0ef 100644 --- a/dtmcli/consts.go +++ b/dtmcli/consts.go @@ -1,14 +1,18 @@ package dtmcli const ( - // StatusPrepared status for global trans status. exists only in tran message + // StatusPrepared status for global/branch trans status. StatusPrepared = "prepared" - // StatusSubmitted StatusSubmitted status for global trans status. + // StatusSubmitted status for global trans status. StatusSubmitted = "submitted" - // StatusSucceed status for global trans status. + // StatusSucceed status for global/branch trans status. StatusSucceed = "succeed" - // StatusFailed status for global trans status. + // StatusFailed status for global/branch trans status. StatusFailed = "failed" + // StatusAborting status for global trans status. + StatusAborting = "aborting" + // StatusDoing status for branch status + StatusDoing = "doing" // BranchTry branch type for TCC BranchTry = "try" @@ -29,6 +33,8 @@ const ( ResultSuccess = "SUCCESS" // ResultFailure for result of a trans/trans branch ResultFailure = "FAILURE" + // ResultOngoing for result of a trans/trans branch + ResultOngoing = "ONGOING" // DBTypeMysql const for driver mysql DBTypeMysql = "mysql"