No, just to local transactions that have not yet started the 2PC
Manik Surtani wrote:
For locally originating txs (on the sender - if the sender has locked
the tree to prepare state) this is correct. Still though, if (due to
network lag) the receiver receives the prepare() before the state, the
prepare() will lock the tree.
Are you referring to started transactions started locally on the
joiner? I don't see how this could happen anyway...
--
Manik Surtani
Lead, JBoss Cache
JBoss, a division of Red Hat
Email: manik(a)jboss.org <mailto:manik@jboss.org>
Telephone: +44 7786 702 706
MSN: manik(a)surtani.org <mailto:manik@surtani.org>
Yahoo/AIM/Skype: maniksurtani
On 13 Sep 2006, at 13:10, Bela Ban wrote:
> Guys,
>
> if we use optimistic locking, I think we would *not* need to do this
> for locally started transactions, correct ? The workspaces which
> contain the work of the local transactions would simply be blocked
> when they try to start the 2PC (until state transfer is over), but we
> would not need to discard them.
>
> Is this correct ?
> --
> Bela Ban
> Lead JGroups / Manager JBoss Clustering Group
> JBoss - a division of Red Hat
>
--
Bela Ban
Lead JGroups / Manager JBoss Clustering Group
JBoss - a division of Red Hat