- Notifications
You must be signed in to change notification settings - Fork5
Commitf7b0006
committed
Avoid updating our PgBackendStatus entry when track_activities is off.
The point of turning off track_activities is to avoid this reportingoverhead, but a thinko in commit4f42b54caused pgstat_report_activity() to perform half of its updates anyway.Fix that, and also make sure that we clear all the now-disabled fieldswhen transitioning to the non-reporting state.1 parent0f1345d commitf7b0006
2 files changed
+25
-28
lines changedLines changed: 23 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2560 | 2560 |
| |
2561 | 2561 |
| |
2562 | 2562 |
| |
2563 |
| - | |
| 2563 | + | |
2564 | 2564 |
| |
2565 | 2565 |
| |
2566 | 2566 |
| |
| |||
2580 | 2580 |
| |
2581 | 2581 |
| |
2582 | 2582 |
| |
2583 |
| - | |
2584 |
| - | |
2585 |
| - | |
2586 |
| - | |
2587 |
| - | |
2588 |
| - | |
2589 |
| - | |
| 2583 | + | |
2590 | 2584 |
| |
2591 |
| - | |
2592 |
| - | |
2593 |
| - | |
2594 |
| - | |
2595 |
| - | |
2596 |
| - | |
2597 |
| - | |
2598 |
| - | |
2599 |
| - | |
2600 |
| - | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
2601 | 2603 |
| |
2602 | 2604 |
| |
2603 | 2605 |
| |
2604 | 2606 |
| |
2605 |
| - | |
| 2607 | + | |
| 2608 | + | |
2606 | 2609 |
| |
2607 | 2610 |
| |
2608 | 2611 |
| |
2609 | 2612 |
| |
2610 | 2613 |
| |
2611 | 2614 |
| |
2612 | 2615 |
| |
| 2616 | + | |
2613 | 2617 |
| |
2614 | 2618 |
| |
2615 | 2619 |
| |
|
Lines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
666 | 666 |
| |
667 | 667 |
| |
668 | 668 |
| |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
| 669 | + | |
| 670 | + | |
678 | 671 |
| |
679 | 672 |
| |
680 | 673 |
| |
|
0 commit comments
Comments
(0)