Menu

TransactionImpl implementation bug?

Help
2004-08-16
2004-08-18
  • Massimo Ferrari

    Massimo Ferrari - 2004-08-16

    TransactionImpl.canUseOnePhaseCommit() line 918:

            // if there is only one delisted resource then yes
            if ( ( null != _delisted ) &&
                 ( _delisted._nextHolder != null ) &&
                 ( null == _enlisted ) )
                return true;   

    shouldn't be
    _delisted._nextHolder == null instead of _delisted._nextHolder != null ?

    In the first case it means that there are more than one delisted resources.

    Regards
    Massimo

     
    • Rost Vashevnik

      Rost Vashevnik - 2004-08-18

      Hi Massimo !

      This one appears to be a bug (in fact it appears to be similar for the enlisted resources @ line 912), please file this one in as a bug report and I will fix it.

      Kind regards

      Rost

       

Log in to post a comment.