Skip to content

Commit 98c4346

Browse files
author
Jaideep Karande
committed
Bug#25495393: GROUP REPLICATION CAN USE SOME VERBOSITY IN THE ERROR LOG
Post push handled windows build issues and doxygen warnings.
1 parent 63a5c0b commit 98c4346

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rapid/plugin/group_replication/include/gcs_event_handlers.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,14 @@ class Plugin_gcs_events_handler: public Gcs_communication_event_listener,
270270
/**
271271
Logs member joining message to error logs from view.
272272
273-
@param[in] view the view delivered by the GCS
273+
@param[in] new_view the view delivered by the GCS
274274
*/
275275
void log_members_joining_message(const Gcs_view& new_view) const;
276276

277277
/**
278278
Logs member leaving message to error logs from view.
279279
280-
@param[in] view the view delivered by the GCS
280+
@param[in] new_view the view delivered by the GCS
281281
*/
282282
void log_members_leaving_message(const Gcs_view& new_view) const;
283283

@@ -286,9 +286,9 @@ class Plugin_gcs_events_handler: public Gcs_communication_event_listener,
286286
in HOST:PORT format separated by comma.
287287
Function also return PRIMARY member if any in HOST:PORT format.
288288
289-
@param[in] joining/leaving members for this view
290-
@param[out] host and port of all members from view
291-
@param[out] primary member hosts and port of all members from view
289+
@param[in] members joining or leaving members for this view
290+
@param[out] all_hosts host and port of all members from view
291+
@param[out] primary_host primary member hosts and port of all members from view
292292
*/
293293
void get_hosts_from_view(const std::vector<Gcs_member_identifier> &members,
294294
std::string& all_hosts, std::string& primary_host) const;

rapid/plugin/group_replication/src/gcs_event_handlers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ Plugin_gcs_events_handler::get_hosts_from_view(const std::vector<Gcs_member_iden
423423
if (member_info->in_primary_mode() &&
424424
member_info->get_role() == Group_member_info::MEMBER_ROLE_PRIMARY)
425425
{
426-
if (primary_string.tellp() != 0)
426+
if (primary_string.rdbuf()->in_avail() != 0)
427427
primary_string << ", ";
428428
primary_string << member_info->get_hostname() << ":" << member_info->get_port();
429429
}

0 commit comments

Comments
 (0)