Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c7cd45

Browse files
committed
Fix range check for effective_io_concurrency
Commit1aba62e moved the range check of that option form guc.c intobufmgr.c, but introduced a bug by changing a >= 0.0 to > 0.0, which madethe value 0 no longer accepted. Put it back.Reported by Jeff Janes, diagnosed by Tom Lane
1 parentc45fb43 commit0c7cd45

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)

[8]ページ先頭

©2009-2025 Movatter.jp