Fix for consume_xids advancing XIDs incorrectly

Fix for consume_xids advancing XIDs incorrectly

Edit