bdr: fix: use same datatype as bdr_max_workers to avoid compiler warning
authorChristian Kruse <[email protected]>
Tue, 13 May 2014 08:42:37 +0000 (10:42 +0200)
committerAndres Freund <[email protected]>
Thu, 3 Jul 2014 15:55:34 +0000 (17:55 +0200)
contrib/bdr/bdr.c

index 7de5c5cc0f80e78b5504a860568e4ba079aedff6..23e977782b771a92474446d53d3b9ff010bab941 100644 (file)
@@ -1296,7 +1296,7 @@ bdr_worker_shmem_create_workers(void)
 BdrWorker*
 bdr_worker_shmem_alloc(BdrWorkerType worker_type, uint32 *ctl_idx)
 {
-   uint32 i;
+   int i;
    LWLockAcquire(BdrWorkerCtl->lock, LW_EXCLUSIVE);
    for (i = 0; i < bdr_max_workers; i++)
    {