Commit b3721f7
committed
Remove dead code and fix comments in fast-path function handling.
HandleFunctionRequest() is no longer responsible for reading the protocol
message from the client, since commit 2b3a8b2. Fix the outdated
comments.
HandleFunctionRequest() now always returns 0, because the code that used
to return EOF was moved in 2b3a8b2. Therefore, the caller no longer
needs to check the return value.
Reported by Andres Freund. Backpatch to all supported versions, even though
this doesn't have any user-visible effect, to make backporting future
patches in this area easier.
Discussion: https://www.postgresql.org/message-id/20170405010525.rt5azbya5fkbhvrx@alap3.anarazel.de1 parent fd52b88 commit b3721f7
3 files changed
+7
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 252 | + | |
| 253 | + | |
263 | 254 | | |
264 | 255 | | |
265 | 256 | | |
266 | 257 | | |
267 | 258 | | |
268 | 259 | | |
269 | | - | |
| 260 | + | |
270 | 261 | | |
271 | 262 | | |
272 | 263 | | |
| |||
281 | 272 | | |
282 | 273 | | |
283 | 274 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 275 | + | |
| 276 | + | |
287 | 277 | | |
288 | 278 | | |
289 | 279 | | |
| |||
406 | 396 | | |
407 | 397 | | |
408 | 398 | | |
409 | | - | |
410 | | - | |
411 | 399 | | |
412 | 400 | | |
413 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4165 | 4165 | | |
4166 | 4166 | | |
4167 | 4167 | | |
4168 | | - | |
4169 | | - | |
4170 | | - | |
4171 | | - | |
4172 | | - | |
4173 | | - | |
4174 | | - | |
4175 | | - | |
4176 | | - | |
4177 | | - | |
4178 | | - | |
4179 | | - | |
4180 | | - | |
| 4168 | + | |
4181 | 4169 | | |
4182 | 4170 | | |
4183 | 4171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
0 commit comments