]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: unify sources of no{up,down,in,out} flags into singleton helpers 28403/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 30 May 2019 06:42:23 +0000 (14:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 5 Jun 2019 07:58:00 +0000 (15:58 +0800)
commit9d11a3a1c96edd4f38f4584ce76febf920763883
treece62860f9200a56f31f2b829804e0a08c4ae2545
parent439ed8ba48af7d33de767107ec13c30c58372abc
osd: unify sources of no{up,down,in,out} flags into singleton helpers

Currently there are various ways to set no{up,down,in,out} flags,
by osd, by crush node, or by device class.

Use traditional is_no{up,down,in,out} helper to catch-all,
and add special wrappers for certain internal consumers.

This way osd won't ignore the noup flag set by the new crush node,
device class, or any future sources.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/crimson/osd/osd.cc
src/mon/OSDMonitor.cc
src/osd/OSD.cc
src/osd/OSDMap.h