Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msg/async:fix the incoming parameter type of EventCenter::process_events() #20607

Merged
merged 1 commit into from
Feb 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/msg/async/Event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ int EventCenter::process_time_events()
return processed;
}

int EventCenter::process_events(int timeout_microseconds, ceph::timespan *working_dur)
int EventCenter::process_events(unsigned timeout_microseconds, ceph::timespan *working_dur)
{
struct timeval tv;
int numevents;
Expand Down
2 changes: 1 addition & 1 deletion src/msg/async/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class EventCenter {
uint64_t create_time_event(uint64_t milliseconds, EventCallbackRef ctxt);
void delete_file_event(int fd, int mask);
void delete_time_event(uint64_t id);
int process_events(int timeout_microseconds, ceph::timespan *working_dur = nullptr);
int process_events(unsigned timeout_microseconds, ceph::timespan *working_dur = nullptr);
void wakeup();

// Used by external thread
Expand Down
2 changes: 1 addition & 1 deletion src/msg/async/Stack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ std::function<void ()> NetworkStack::add_thread(unsigned i)
char tp_name[16];
sprintf(tp_name, "msgr-worker-%u", w->id);
ceph_pthread_setname(pthread_self(), tp_name);
const uint64_t EventMaxWaitUs = 30000000;
const unsigned EventMaxWaitUs = 30000000;
w->center.set_owner();
ldout(cct, 10) << __func__ << " starting" << dendl;
w->initialize();
Expand Down