aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-04-06 09:09:39 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-04-06 09:11:11 +0300
commitb3721f7d13aa527961688b98dbc09acff30c938c (patch)
treebf4a178928721c9f70799d9167bf3623cee83207 /src/include
parentfd52b88343308fabb13d6355db3c2565cdf91302 (diff)
downloadpostgresql-b3721f7d13aa527961688b98dbc09acff30c938c.tar.gz
postgresql-b3721f7d13aa527961688b98dbc09acff30c938c.zip
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 2b3a8b20c2. Fix the outdated comments. HandleFunctionRequest() now always returns 0, because the code that used to return EOF was moved in 2b3a8b20c2. 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.de
Diffstat (limited to 'src/include')
-rw-r--r--src/include/tcop/fastpath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/tcop/fastpath.h b/src/include/tcop/fastpath.h
index df6234be896..0aceb8807c6 100644
--- a/src/include/tcop/fastpath.h
+++ b/src/include/tcop/fastpath.h
@@ -16,6 +16,6 @@
#include "lib/stringinfo.h"
extern int GetOldFunctionMessage(StringInfo buf);
-extern int HandleFunctionRequest(StringInfo msgBuf);
+extern void HandleFunctionRequest(StringInfo msgBuf);
#endif /* FASTPATH_H */