diff options
author | Thong Nguyen <tumtumtum@gmail.com> | 2014-01-13 01:59:39 +0400 |
---|---|---|
committer | Thong Nguyen <tumtumtum@gmail.com> | 2014-01-13 02:00:57 +0400 |
commit | 99d7cb1610b17b6d80820a813300e723767ad854 (patch) | |
tree | 9bb73b12b1e889563335e0a1bc9a1736c857bb50 /mcs | |
parent | 0aa1d4fe1547f376063b5023c9ea71cf653f6d7f (diff) |
Quickfix for transactions timing out and not committing when PreparingEnlistment.Done is called instead of PreparingEnlistment.Prepared
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Transactions/System.Transactions/Enlistment.cs | 6 | ||||
-rw-r--r-- | mcs/class/System.Transactions/System.Transactions/PreparingEnlistment.cs | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mcs/class/System.Transactions/System.Transactions/Enlistment.cs b/mcs/class/System.Transactions/System.Transactions/Enlistment.cs index 3cf7228b322..28342175e8a 100644 --- a/mcs/class/System.Transactions/System.Transactions/Enlistment.cs +++ b/mcs/class/System.Transactions/System.Transactions/Enlistment.cs @@ -25,6 +25,12 @@ namespace System.Transactions public void Done () { done = true; + + InternalOnDone(); + } + + internal virtual void InternalOnDone () + { } } } diff --git a/mcs/class/System.Transactions/System.Transactions/PreparingEnlistment.cs b/mcs/class/System.Transactions/System.Transactions/PreparingEnlistment.cs index 8995fcb851a..eaaa277c422 100644 --- a/mcs/class/System.Transactions/System.Transactions/PreparingEnlistment.cs +++ b/mcs/class/System.Transactions/System.Transactions/PreparingEnlistment.cs @@ -35,6 +35,11 @@ namespace System.Transactions ForceRollback (null); } + internal override void InternalOnDone () + { + this.Prepared(); + } + [MonoTODO] public void ForceRollback (Exception ex) { |