forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd0d6226
committed
Fix thinko coming from000f3ad
pg_basebackup.c relies on the compression level to not be 0 to decide ifcompression should be used, but000f3ad missed the fact that thedefault compression (Z_DEFAULT_COMPRESSION) is -1, which would be usedif specifying --gzip without --compress.While on it, add some coverage for --gzip, as this is rather easy tomiss.Reported-by: Christoph BergDiscussion:https://postgr.es/m/YdhRDMLjabtXOnhY@msg.df7cb.de1 parent27b77ec commitd0d6226
2 files changed
+18
-5
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
527 |
| - | |
| 527 | + | |
528 | 528 |
| |
529 | 529 |
| |
530 | 530 |
| |
|
Lines changed: 17 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
630 | 630 |
| |
631 | 631 |
| |
632 | 632 |
| |
633 |
| - | |
| 633 | + | |
634 | 634 |
| |
635 | 635 |
| |
636 | 636 |
| |
| |||
641 | 641 |
| |
642 | 642 |
| |
643 | 643 |
| |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
644 | 652 |
| |
645 | 653 |
| |
646 | 654 |
| |
647 | 655 |
| |
648 | 656 |
| |
649 |
| - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
650 | 661 |
| |
651 | 662 |
| |
652 | 663 |
| |
| |||
655 | 666 |
| |
656 | 667 |
| |
657 | 668 |
| |
658 |
| - | |
| 669 | + | |
| 670 | + | |
659 | 671 |
| |
660 | 672 |
| |
| 673 | + | |
661 | 674 |
|
0 commit comments
Comments
(0)