Repository navigation
Use startup packets to set server version - #509
Conversation
|
Hi, @jesperpedersen Thanks! |
|
You need to update |
0f6176b to
a394d58
Compare
I've just updated it :D |
| * @return 0 on success, otherwise 1 | ||
| */ | ||
| int | ||
| pgmoneta_extract_server_parameters(struct deque* server_parameters); |
There was a problem hiding this comment.
This function should do the deque so struct deque**
There was a problem hiding this comment.
I've updated it. Could you kindly review the updates? :D
| #include <security.h> | ||
| #include <server.h> | ||
| #include <utils.h> | ||
| #include <deque.h> |
There was a problem hiding this comment.
I've updated the header includes to be properly sorted.
|
|
| size_t offset; | ||
| struct message* msg; | ||
| char* name; | ||
| char* value; |
There was a problem hiding this comment.
Do
struct deque* sp = NULL;
*server_parameters = NULL;
...
*server_parameters = sp;
There was a problem hiding this comment.
Thanks!
I've made the changes
| while (pgmoneta_deque_iterator_next(iter)) | ||
| { | ||
| pgmoneta_log_debug("%s/process server_parameter '%s'", config->servers[server].name, iter->tag); | ||
| if (strcmp("server_version", iter->tag) == 0) |
|
You need to reference the main issue in the commit message -- see the git log for examples. Use |
|
Thanks. |
|
Merged. Thanks for your contribution ! |
|
Can you port these changes to pgagroal and pgexporter too ? |
|
Sure. Let me get on it |
|
Hello, @jesperpedersen |
|
For now, you just add |
Utilized Startup packets ('S' B) to set server version. (#498)