]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_context: get_moduel_type() for seastar cct
authorSage Weil <sage@redhat.com>
Thu, 24 Jan 2019 22:57:05 +0000 (16:57 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:33 +0000 (12:10 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/ceph_context.cc
src/common/ceph_context.h

index b0b1f412ca66a68b99e41050394302e93fbb57bf..7b124fed4c2fe5f8d4b534b0cb2ce6a150d25253 100644 (file)
@@ -63,6 +63,11 @@ CephContext::CephContext()
 CephContext::~CephContext()
 {}
 
+uint32_t CephContext::get_module_type() const
+{
+  return module_type;
+}
+
 CryptoRandom* CephContext::random() const
 {
   return _crypto_random.get();
index 7e064e21327730bcc9ead7d2717beefadcb1eecc..ceb42e729bf4411516fca5cf2fd28bb45215dcb4 100644 (file)
@@ -67,6 +67,7 @@ public:
   {}
   ~CephContext();
 
+  uint32_t get_module_type() const;
   CryptoRandom* random() const;
   PerfCountersCollectionImpl* get_perfcounters_collection();
   ceph::common::ConfigProxy& _conf;
@@ -76,6 +77,8 @@ 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.