提交 857763ae 编写于 作者: N Ning Yu

gpexpand: cleanup new segments in parallel

When cleaning up the master-only files on the new segments we used to do
the job one by one, when there are tens or hundreds of segments it can
be very slow.

Now we cleanup in parallel.
上级 c0b05f8d
......@@ -1417,10 +1417,11 @@ class gpexpand:
, sqlCommandList=statements
)
self.pool.addCommand(execSQLCmd)
self.pool.join()
### need to fix self.pool.check_results(). Call getCompletedItems to clear the queue for now.
self.pool.check_results()
self.pool.getCompletedItems()
self.pool.join()
### need to fix self.pool.check_results(). Call getCompletedItems to clear the queue for now.
self.pool.check_results()
self.pool.getCompletedItems()
# --------------------------------------------------------------------------
def restore_master(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册