Skip to content

Commit

Permalink
Adopt to signature change of Selectable::readData, which switched (#1061
Browse files Browse the repository at this point in the history
)

return type from void to uint64_t.
  • Loading branch information
renukamanavalan authored Sep 19, 2019
1 parent 543bd98 commit 0ddaba3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion fpmsyncd/fpmlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int FpmLink::getFd()
return m_connection_socket;
}

void FpmLink::readData()
uint64_t FpmLink::readData()
{
fpm_msg_hdr_t *hdr;
size_t msg_len;
Expand Down Expand Up @@ -133,4 +133,5 @@ void FpmLink::readData()

memmove(m_messageBuffer, m_messageBuffer + start, m_pos - start);
m_pos = m_pos - (uint32_t)start;
return 0;
}
2 changes: 1 addition & 1 deletion fpmsyncd/fpmlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FpmLink : public Selectable {
void accept();

int getFd() override;
void readData() override;
uint64_t readData() override;
/* readMe throws FpmConnectionClosedException when connection is lost */
class FpmConnectionClosedException : public std::exception
{
Expand Down
2 changes: 1 addition & 1 deletion orchagent/orch.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Executor : public Selectable

// Decorating Selectable
int getFd() override { return m_selectable->getFd(); }
void readData() override { m_selectable->readData(); }
uint64_t readData() override { return m_selectable->readData(); }
bool hasCachedData() override { return m_selectable->hasCachedData(); }
bool initializedWithData() override { return m_selectable->initializedWithData(); }
void updateAfterRead() override { m_selectable->updateAfterRead(); }
Expand Down
3 changes: 2 additions & 1 deletion teamsyncd/teamsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ int TeamSync::TeamPortSync::getFd()
return team_get_event_fd(m_team);
}

void TeamSync::TeamPortSync::readData()
uint64_t TeamSync::TeamPortSync::readData()
{
team_handle_events(m_team);
return 0;
}
2 changes: 1 addition & 1 deletion teamsyncd/teamsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TeamSync : public NetMsg
~TeamPortSync();

int getFd() override;
void readData() override;
uint64_t readData() override;

/* member_name -> enabled|disabled */
std::map<std::string, bool> m_lagMembers;
Expand Down

0 comments on commit 0ddaba3

Please sign in to comment.