Project

General

Profile

Actions

Bug #42821

closed

src/msg/async/net_handler.cc: Fix compilation

Added by Carlos Valiente over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Code Hygiene
Target version:
-
% 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


Related issues 1 (0 open1 closed)

Copied to RADOS - Backport #42846: nautilus: src/msg/async/net_handler.cc: Fix compilationResolvedNathan CutlerActions
Actions

Also available in: Atom PDF