mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Fix loop variable signedness
This commit is contained in:
parent
ec2133a447
commit
ba216d3b54
@ -282,7 +282,6 @@ void
|
|||||||
_PG_init(void)
|
_PG_init(void)
|
||||||
{
|
{
|
||||||
BackgroundWorker worker;
|
BackgroundWorker worker;
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
/* get the configuration */
|
/* get the configuration */
|
||||||
DefineCustomIntVariable("worker_spi.naptime",
|
DefineCustomIntVariable("worker_spi.naptime",
|
||||||
@ -336,7 +335,7 @@ _PG_init(void)
|
|||||||
/*
|
/*
|
||||||
* Now fill in worker-specific data, and do the actual registrations.
|
* Now fill in worker-specific data, and do the actual registrations.
|
||||||
*/
|
*/
|
||||||
for (i = 1; i <= worker_spi_total_workers; i++)
|
for (int i = 1; i <= worker_spi_total_workers; i++)
|
||||||
{
|
{
|
||||||
snprintf(worker.bgw_name, BGW_MAXLEN, "worker_spi worker %d", i);
|
snprintf(worker.bgw_name, BGW_MAXLEN, "worker_spi worker %d", i);
|
||||||
snprintf(worker.bgw_type, BGW_MAXLEN, "worker_spi");
|
snprintf(worker.bgw_type, BGW_MAXLEN, "worker_spi");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user