提交 16522314 编写于 作者: P Pengzhou Tang 提交者: Tang Pengzhou

Use the correct time unit in BackoffSweeper backend

Commit bfd1f46c used the wrong time unit (expect Ms, passed with Us)
in BackoffSweeper backend which makes it cannot re-calculate the CPU shares
in time and the normal backends will sleep more CPU ticks than before in
CHECK_FOR_INTERRUPTS and cause a performance downgrade.
上级 828086fa
......@@ -1208,7 +1208,7 @@ BackoffSweeperLoop(void)
/* Sleep a while. */
rc = WaitLatch(&MyProc->procLatch,
WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
gp_resqueue_priority_sweeper_interval * 1000L);
gp_resqueue_priority_sweeper_interval);
ResetLatch(&MyProc->procLatch);
/* emergency bailout if postmaster has died */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册