]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
log: remove "boost/asio.hpp" from Log.h
authorKefu Chai <kchai@redhat.com>
Fri, 5 Feb 2016 07:56:55 +0000 (15:56 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2016 05:27:25 +0000 (21:27 -0800)
commitf5cad7ac4e76b0a2a23042f4cd55af38b08237fa
treebea4089f2e2894301b904b5f3a55c5eb2bb26758
parentef1573b171096598ff967d435472feb3470e91e6
log: remove "boost/asio.hpp" from Log.h

graylog uses boost/asio.hpp which introduces the link-time dependency on
libboost_system to the compilation units which includes Log.h and
LogClient.h. so it appears that perfglue/heap_profiler.cc is referencing
libboost_system.so, and fails the cmake build of all tests which links
against tcmalloc.

in this change, we:

* remove unnecessary #includes from Graylog.h
* forward declare Graylog class, so that "Graylog.h" is not included in
  any header files to avoid the link-time dependency pollution

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/Graylog.cc
src/common/Graylog.h
src/common/LogClient.cc
src/common/LogClient.h
src/common/ceph_context.cc
src/log/Log.cc
src/log/Log.h
src/mon/LogMonitor.cc
src/mon/LogMonitor.h