Skip to content

Commit a3e4cda

Browse files
committed
feat(OpDict): add rollback operation and update comments
1 parent 1da8f7e commit a3e4cda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DtmCommon/Constant.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ public class Barrier
6767

6868
public static readonly Dictionary<string, string> OpDict = new Dictionary<string, string>()
6969
{
70-
{ "cancel", "try" },
71-
{ "compensate", "action" },
70+
{ "cancel", "try" }, // tcc
71+
{ "compensate", "action" }, // saga
72+
{ "rollback", "action" }, // workflow
7273
};
7374
public static readonly string REDIS_LUA_CheckAdjustAmount = @" -- RedisCheckAdjustAmount
7475
local v = redis.call('GET', KEYS[1])

0 commit comments

Comments
 (0)