fixes #2686
Merge pull request #2693 from gurbuzali/xa-recovery-fix/3.3

fixes #2686