- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7f848cb
committed
Remove superfluous autoprewarm check
autoprewarm_database_main() prewarms blocks from the same database. Itis passed an array of sorted BlockInfoRecords and a start and stop indexinto the array. The range represented should include only blocksbelonging to global objects or blocks from a single database. Remove anunnecessary check that the current block is from the same database andadd an assert to ensure this invariant remains. Doing so removes aspecial case that makes future refactoring to accommodate readstreamifying autoprewarm easier.Noticed off-list by Andres Freund1 parentb3f1a13 commit7f848cb
1 file changed
+3
-5
lines changedLines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
463 | 463 |
| |
464 | 464 |
| |
465 | 465 |
| |
466 |
| - | |
467 |
| - | |
| 466 | + | |
| 467 | + | |
468 | 468 |
| |
469 |
| - | |
470 |
| - | |
471 |
| - | |
| 469 | + | |
472 | 470 |
| |
473 | 471 |
| |
474 | 472 |
| |
|
0 commit comments
Comments
(0)