Skip to content

Commit 0c7cd45

Browse files
committed
Fix range check for effective_io_concurrency
Commit 1aba62e moved the range check of that option form guc.c into bufmgr.c, but introduced a bug by changing a >= 0.0 to > 0.0, which made the value 0 no longer accepted. Put it back. Reported by Jeff Janes, diagnosed by Tom Lane
1 parent c45fb43 commit 0c7cd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ ComputeIoConcurrency(int io_concurrency, double *target)
514514
*target = new_prefetch_pages;
515515

516516
/* This range check shouldn't fail, but let's be paranoid */
517-
return (new_prefetch_pages > 0.0 && new_prefetch_pages < (double) INT_MAX);
517+
return (new_prefetch_pages >= 0.0 && new_prefetch_pages < (double) INT_MAX);
518518
}
519519

520520
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy