Remove tmlock test and add an assert instead.
The test used to validate that the tmlock is not held after completing the DTM recovery. The root cause for not releasing the lock was that in case of an error during recovery `elog_demote(WARNING)` was called which would demote the error to a warning. This would cause the abort processing code to not get executed and hence the lock would not be released. Adding a simple assert in the code once DTM recovery is complete is sufficient to make sure that the lock is released.
Showing
想要评论请 注册 或 登录