Refactor idle sessions gang killing to new file
The functionality for gp_vmem_idle_resource_timeout is implemented by these files. Refactor to make it TDDable and easier to understand. We moved DisconnectAndDestroyUnusedGangs to cdbgang because it will be a natural seam for our mocks when we write more unit tests that expect it to be called. Also, it seems to belong to that file given all of the functions it calls are already in cdbgang. Co-authored-by: NBen Christel <bchristel@pivotal.io> Co-authored-by: NAmil Khanzada <akhanzada@pivotal.io>
Showing
想要评论请 注册 或 登录