Skip to content

Commit

Permalink
MDEV-17437 followup: fixing compilation on non-HAVE_POLL.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelkin committed Nov 13, 2018
1 parent 34a3972 commit 573c4db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sql/semisync_master_ack_receiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ void Ack_receiver::run()
#ifdef HAVE_POLL
DBUG_PRINT("info", ("fd count %u", slave_count));
#else
DBUG_PRINT("info", ("fd count %u, max_fd %d", slave_count,(int) max_fd));
DBUG_PRINT("info", ("fd count %u, max_fd %d", slave_count,
(int) listener.get_max_fd()));
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions sql/semisync_master_ack_receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Select_socket_listener
m_fds= m_init_fds;
struct timeval tv= {1,0};
/* select requires max fd + 1 for the first argument */
return select(m_max_fd+1, &m_fds, NULL, NULL, &tv);
return select((int) m_max_fd+1, &m_fds, NULL, NULL, &tv);
}

bool is_socket_active(const Slave *slave)
Expand All @@ -202,7 +202,7 @@ class Select_socket_listener

uint init_slave_sockets()
{
Slave_ilist_iterator it(m_slaves);
Slave_ilist_iterator it(const_cast<Slave_ilist&>(m_slaves));
Slave *slave;
uint fds_index= 0;

Expand Down

0 comments on commit 573c4db

Please sign in to comment.