forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf0bf785
committed
Merge pgstat_count_io_op_n() and pgstat_count_io_op()
The pgstat_count_io_op() function, which counts a single I/O operation,wraps pgstat_count_io_op_n() with a counter value of 1. The latter isdeclared in pgstat.h and used nowhere in the code, so let's remove it infavor of the former.This change makes also the code more symmetric withpgstat_count_io_op_time(), that already uses a similar set of arguments,except that it counts also the I/O time. This will ease a bit theintegration of a follow-up patch that adds byte-level tracking inpg_stat_io for some of its attributes, lifting the current restrictionbased on BLCKSZ as all I/O operations are assumed to be block-based.Author: Nazir Bilal YavuzReviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/CAN55FZ32ze812=yjyZg1QeXhKvACUM_Nu0_gyPQcUKKuVHL5xA@mail.gmail.com1 parent2c14037 commitf0bf785
File tree
4 files changed
+8
-14
lines changed- src
- backend
- storage/buffer
- utils/activity
- include
4 files changed
+8
-14
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1165 | 1165 |
| |
1166 | 1166 |
| |
1167 | 1167 |
| |
1168 |
| - | |
| 1168 | + | |
1169 | 1169 |
| |
1170 | 1170 |
| |
1171 | 1171 |
| |
| |||
2073 | 2073 |
| |
2074 | 2074 |
| |
2075 | 2075 |
| |
2076 |
| - | |
| 2076 | + | |
2077 | 2077 |
| |
2078 | 2078 |
| |
2079 | 2079 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
282 |
| - | |
| 282 | + | |
283 | 283 |
| |
284 | 284 |
| |
285 | 285 |
| |
|
Lines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 69 | + | |
76 | 70 |
| |
77 | 71 |
| |
78 | 72 |
| |
| |||
116 | 110 |
| |
117 | 111 |
| |
118 | 112 |
| |
119 |
| - | |
| 113 | + | |
120 | 114 |
| |
121 | 115 |
| |
122 | 116 |
| |
| |||
159 | 153 |
| |
160 | 154 |
| |
161 | 155 |
| |
162 |
| - | |
| 156 | + | |
163 | 157 |
| |
164 | 158 |
| |
165 | 159 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
603 | 603 |
| |
604 | 604 |
| |
605 | 605 |
| |
606 |
| - | |
607 |
| - | |
| 606 | + | |
| 607 | + | |
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
|
0 commit comments
Comments
(0)