]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush,osd: add operator<<(ostream, const CrushLocation&)
authorKefu Chai <kchai@redhat.com>
Fri, 21 Jun 2019 11:07:06 +0000 (19:07 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Jun 2019 12:31:46 +0000 (20:31 +0800)
commitd56f77bf8946922a71727e1f3f5195886fe75454
tree692aa929f2c94b3b5d0aa35993666e74fd2a7921
parent880ab48404bca59975d3ac8d2be774bb1d1c163b
crush,osd: add operator<<(ostream, const CrushLocation&)

* add operator<<(ostream&, const CrushLocation&) out from OSD.cc, so it can
  be reused by crimson-osd
* update OSD.cc to use operator<<(ostream&, const CrushLocation&)
* use ceph::mutex instead of std::mutex. so CrushLocation can be used by
  crimson-osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crush/CrushLocation.cc
src/crush/CrushLocation.h
src/osd/OSD.cc