What is the bug and why does this patch change anything?  Why do you think
it won't cause equal and opposite bugs with other drivers?

I haven't tested actual drivers extensively but have always assumed
isSameRM was intended to be symmetric..

(for all a) (for all b) (a.isSameRM(b) == b.isSameRM(a))

The efficacy of your patch appears to depend on this identity failing: if
other drivers have opposite failings won't this patch break them?


thanks
david jencks


On 2002.11.13 16:36:28 -0500 Dan A. Dickey wrote:
> Here's a patch for a bug I found.  I couldn't determine how to
> open a bug on either sourceforge.net nor jboss.org, so I'll just
> simply post this patch to this list.  Enjoy.
> And with this, I believe I can now use an InformixXADs.  :)
>       -Dan
> 
> 
> --- TxCapsule.java.old  Wed Nov 13 15:24:58 2002
> +++ TxCapsule.java      Wed Nov 13 14:59:47 2002
> @@ -710,7 +710,7 @@
>              //{
>              for (int i = 0; i < resourceCount; ++i)
>              {
> -               if (resourceSameRM[i] == -1 &&
> xaRes.isSameRM(resources[i]))
> +               if (resourceSameRM[i] == -1 &&
> resources[i].isSameRM(xaRes))
>                 {
>                    // The xaRes is new. We register the xaRes with the
> Xid
>                    // that the RM has previously seen from this
> transaction,
> 
> 
> -- 
> Dan A. Dickey
> [EMAIL PROTECTED]
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Are you worried about 
> your web server security? Click here for a FREE Thawte 
> Apache SSL Guide and answer your Apache SSL security 
> needs: http://www.gothawte.com/rd523.html
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to