Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)