refs #12 merge xa and 2pc fixes from mariadb