- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit8d140c5
committed
Improve the naming in wal_sync_method code.
* sync_method is renamed to wal_sync_method.* sync_method_options[] is renamed to wal_sync_method_options[].* assign_xlog_sync_method() is renamed to assign_wal_sync_method().* The names of the available synchronization methods are now prefixed with "WAL_SYNC_METHOD_" and have been moved into a WalSyncMethod enum.* PLATFORM_DEFAULT_SYNC_METHOD is renamed to PLATFORM_DEFAULT_WAL_SYNC_METHOD, and DEFAULT_SYNC_METHOD is renamed to DEFAULT_WAL_SYNC_METHOD.These more descriptive names help distinguish the code forwal_sync_method from the code for DataDirSyncMethod (e.g., therecovery_init_sync_method configuration parameter and the--sync-method option provided by several frontend utilities). Thischange also prevents name collisions between the aforementionedsets of code. Since this only improves the naming of internalidentifiers, there should be no behavior change.Author: Maxim OrlovDiscussion:https://postgr.es/m/CACG%3DezbL1gwE7_K7sr9uqaCGkWhmvRTcTEnm3%2BX1xsRNwbXULQ%40mail.gmail.com1 parentc5a032e commit8d140c5
File tree
9 files changed
+52
-48
lines changed- src
- backend
- access/transam
- storage/file
- utils/misc
- include
- access
- port
- utils
- tools/pgindent
9 files changed
+52
-48
lines changedLines changed: 29 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
| 133 | + | |
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
175 |
| - | |
| 174 | + | |
| 175 | + | |
176 | 176 |
| |
177 |
| - | |
| 177 | + | |
178 | 178 |
| |
179 |
| - | |
| 179 | + | |
180 | 180 |
| |
181 |
| - | |
| 181 | + | |
182 | 182 |
| |
183 | 183 |
| |
184 |
| - | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
| |||
2343 | 2343 |
| |
2344 | 2344 |
| |
2345 | 2345 |
| |
2346 |
| - | |
2347 |
| - | |
| 2346 | + | |
| 2347 | + | |
2348 | 2348 |
| |
2349 | 2349 |
| |
2350 | 2350 |
| |
| |||
2974 | 2974 |
| |
2975 | 2975 |
| |
2976 | 2976 |
| |
2977 |
| - | |
| 2977 | + | |
2978 | 2978 |
| |
2979 | 2979 |
| |
2980 | 2980 |
| |
| |||
3139 | 3139 |
| |
3140 | 3140 |
| |
3141 | 3141 |
| |
3142 |
| - | |
| 3142 | + | |
3143 | 3143 |
| |
3144 | 3144 |
| |
3145 | 3145 |
| |
| |||
3371 | 3371 |
| |
3372 | 3372 |
| |
3373 | 3373 |
| |
3374 |
| - | |
| 3374 | + | |
3375 | 3375 |
| |
3376 | 3376 |
| |
3377 | 3377 |
| |
| |||
8137 | 8137 |
| |
8138 | 8138 |
| |
8139 | 8139 |
| |
8140 |
| - | |
8141 |
| - | |
8142 |
| - | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
8143 | 8143 |
| |
8144 | 8144 |
| |
8145 |
| - | |
| 8145 | + | |
8146 | 8146 |
| |
8147 | 8147 |
| |
8148 | 8148 |
| |
8149 |
| - | |
| 8149 | + | |
8150 | 8150 |
| |
8151 | 8151 |
| |
8152 | 8152 |
| |
| |||
8160 | 8160 |
| |
8161 | 8161 |
| |
8162 | 8162 |
| |
8163 |
| - | |
| 8163 | + | |
8164 | 8164 |
| |
8165 |
| - | |
| 8165 | + | |
8166 | 8166 |
| |
8167 | 8167 |
| |
8168 | 8168 |
| |
| |||
8188 | 8188 |
| |
8189 | 8189 |
| |
8190 | 8190 |
| |
8191 |
| - | |
| 8191 | + | |
8192 | 8192 |
| |
8193 | 8193 |
| |
8194 | 8194 |
| |
| |||
8214 | 8214 |
| |
8215 | 8215 |
| |
8216 | 8216 |
| |
8217 |
| - | |
8218 |
| - | |
| 8217 | + | |
| 8218 | + | |
8219 | 8219 |
| |
8220 | 8220 |
| |
8221 | 8221 |
| |
| |||
8225 | 8225 |
| |
8226 | 8226 |
| |
8227 | 8227 |
| |
8228 |
| - | |
| 8228 | + | |
8229 | 8229 |
| |
8230 |
| - | |
| 8230 | + | |
8231 | 8231 |
| |
8232 | 8232 |
| |
8233 | 8233 |
| |
8234 | 8234 |
| |
8235 |
| - | |
| 8235 | + | |
8236 | 8236 |
| |
8237 | 8237 |
| |
8238 | 8238 |
| |
8239 | 8239 |
| |
8240 |
| - | |
| 8240 | + | |
8241 | 8241 |
| |
8242 | 8242 |
| |
8243 | 8243 |
| |
8244 |
| - | |
8245 |
| - | |
| 8244 | + | |
| 8245 | + | |
8246 | 8246 |
| |
8247 | 8247 |
| |
8248 | 8248 |
| |
8249 | 8249 |
| |
8250 |
| - | |
| 8250 | + | |
8251 | 8251 |
| |
8252 | 8252 |
| |
8253 | 8253 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
398 | 398 |
| |
399 | 399 |
| |
400 | 400 |
| |
401 |
| - | |
| 401 | + | |
402 | 402 |
| |
403 |
| - | |
| 403 | + | |
404 | 404 |
| |
405 | 405 |
| |
406 | 406 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
488 |
| - | |
| 488 | + | |
489 | 489 |
| |
490 | 490 |
| |
491 | 491 |
| |
| |||
4843 | 4843 |
| |
4844 | 4844 |
| |
4845 | 4845 |
| |
4846 |
| - | |
4847 |
| - | |
4848 |
| - | |
| 4846 | + | |
| 4847 | + | |
| 4848 | + | |
4849 | 4849 |
| |
4850 | 4850 |
| |
4851 | 4851 |
| |
|
Lines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 |
| |
29 | 32 |
| |
30 | 33 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
75 |
| - | |
| 74 | + | |
| 75 | + | |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 |
| - | |
| 79 | + | |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
| 162 | + | |
163 | 163 |
| |
164 | 164 |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3016 | 3016 |
| |
3017 | 3017 |
| |
3018 | 3018 |
| |
| 3019 | + | |
3019 | 3020 |
| |
3020 | 3021 |
| |
3021 | 3022 |
| |
|
0 commit comments
Comments
(0)