From b012507ce01fe0ebf2faf000bbb825d6bbfc55cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E6=9D=BE=E6=9D=B0?= <377973147@qq.com> Date: Wed, 31 Jan 2024 10:26:21 +0800 Subject: [PATCH 1/2] fix barrier transaction bug --- src/DtmMongoBarrier/MongoBranchBarrier.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DtmMongoBarrier/MongoBranchBarrier.cs b/src/DtmMongoBarrier/MongoBranchBarrier.cs index c7926d1..54d6b26 100644 --- a/src/DtmMongoBarrier/MongoBranchBarrier.cs +++ b/src/DtmMongoBarrier/MongoBranchBarrier.cs @@ -145,7 +145,7 @@ await MongoInsertBarrier( { try { - await barrier.InsertOneAsync(new DtmBarrierDocument + await barrier.InsertOneAsync(session,new DtmBarrierDocument { TransType = bb.TransType, GId = bb.Gid, From 52f61bc7a192fa758b3707c5140c006cbeb7c3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E6=9D=BE=E6=9D=B0?= <377973147@qq.com> Date: Wed, 31 Jan 2024 10:26:21 +0800 Subject: [PATCH 2/2] fix barrier transaction bug --- src/DtmMongoBarrier/MongoBranchBarrier.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DtmMongoBarrier/MongoBranchBarrier.cs b/src/DtmMongoBarrier/MongoBranchBarrier.cs index c7926d1..54d6b26 100644 --- a/src/DtmMongoBarrier/MongoBranchBarrier.cs +++ b/src/DtmMongoBarrier/MongoBranchBarrier.cs @@ -145,7 +145,7 @@ await MongoInsertBarrier( { try { - await barrier.InsertOneAsync(new DtmBarrierDocument + await barrier.InsertOneAsync(session,new DtmBarrierDocument { TransType = bb.TransType, GId = bb.Gid,