resgroup: move UnassignResGroup into AtEOXact_ResGroup
* Do UnassignResGroup within prepareTransaction too, prepareTransaction() will put QE out of any transactions temporarily until the second commit command arrives, so any failures in this gap will cause leaks of resource group including slots etc. * Clean code, move UnassignResGroup() into AtEOXact_ResGroup() so resource group related codes will not spread across prepare/commit/abort functions. * Do not call callback functions in PrepareTransaction because the transaction is not trully commited.
Showing
想要评论请 注册 或 登录