Actions
Bug #42821
closedsrc/msg/async/net_handler.cc: Fix compilation
% Done:
0%
Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Messenger
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
On a Cray system I'm working on, it seems that SO_PRIORITY is defined, but IPTOS_CLASS_CS6 is not. Without this patch, compilation fails at line 150:
r = ::setsockopt(sd, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio));
because the variable r is not defined (originally it is defined inside the #ifdef IPTOS_CLASS_CS6 block).
GitHub PR: https://github.com/ceph/ceph/pull/31637
Actions