Skip to content

Commit caec4ff

Browse files
author
hackorum
committed
Apply debug-18385.patch
1 parent b597835 commit caec4ff

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/backend/postmaster/bgwriter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ BackgroundWriterMain(const void *startup_data, size_t startup_data_len)
306306
*/
307307
rc = WaitLatch(MyLatch,
308308
WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH,
309-
BgWriterDelay /* ms */ , WAIT_EVENT_BGWRITER_MAIN);
309+
1 /* ms */ , WAIT_EVENT_BGWRITER_MAIN);
310310

311311
/*
312312
* If no latch event and BgBufferSync says nothing's happening, extend

src/backend/storage/buffer/freelist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ StrategySyncStart(uint32 *complete_passes, uint32 *num_buf_alloc)
352352
{
353353
*num_buf_alloc = pg_atomic_exchange_u32(&StrategyControl->numBufferAllocs, 0);
354354
}
355+
pg_usleep(300);
355356
SpinLockRelease(&StrategyControl->buffer_strategy_lock);
356357
return result;
357358
}

0 commit comments

Comments
 (0)