mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
src/msg/rdma: fixes failure on assert in notify()
The commit fixes incorrect eventfd handling introduced in
2e75b876d1
Signed-off-by: Alex Mikheev <alexm@mellanox.com>
This commit is contained in:
parent
aaf32d8f43
commit
44c895ea51
@ -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)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user