]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_context: hardwire module_type to CEPH_ENTITY_TYPE_OSD
authorKefu Chai <kchai@redhat.com>
Tue, 12 Feb 2019 11:42:33 +0000 (19:42 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 12 Feb 2019 12:08:12 +0000 (20:08 +0800)
currently, crimson project is only targeting crimson-osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/ceph_context.cc
src/common/ceph_context.h

index 7b124fed4c2fe5f8d4b534b0cb2ce6a150d25253..5c26e7473a941df33bade51c117b6e4d73321b7b 100644 (file)
@@ -65,7 +65,7 @@ CephContext::~CephContext()
 
 uint32_t CephContext::get_module_type() const
 {
-  return module_type;
+  return CEPH_ENTITY_TYPE_OSD;
 }
 
 CryptoRandom* CephContext::random() const
index ceb42e729bf4411516fca5cf2fd28bb45215dcb4..97595791f2afb2568824f44e33294bff99d1c90c 100644 (file)
@@ -77,8 +77,6 @@ public:
 private:
   std::unique_ptr<CryptoRandom> _crypto_random;
   unsigned nref;
-#warning fixme need to set module_type for seastar
-  int module_type;
 };
 #else
 /* A CephContext represents the context held by a single library user.