Skip to content

Commit

Permalink
Merge pull request ceph#17007 from alex-mikheev/wip_rdma_notify_fix
Browse files Browse the repository at this point in the history
src/msg/rdma: fixes failure on assert in notify()

Reviewed-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 authored Aug 13, 2017
2 parents aaf32d8 + 44c895e commit 00e8ab3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/msg/async/rdma/RDMAConnectedSocketImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,10 @@ void RDMAConnectedSocketImpl::cleanup() {

void RDMAConnectedSocketImpl::notify()
{
int i = 1;
// note: notify_fd is an event fd (man eventfd)
// write argument must be a 64bit integer
uint64_t i = 1;

assert(sizeof(i) == write(notify_fd, &i, sizeof(i)));
}

Expand Down

0 comments on commit 00e8ab3

Please sign in to comment.