Content-Length: 258758 | pFad | http://github.com/postgrespro/postgres_cluster/commit/0c7cd45b6d702253c09427929bcceb6e7fe9029a

3C Fix range check for effective_io_concurrency · postgrespro/postgres_cluster@0c7cd45 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/0c7cd45b6d702253c09427929bcceb6e7fe9029a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy