]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-context: add function to set init flags
authorKarol Mroz <kmroz@suse.com>
Sat, 23 Apr 2016 11:32:45 +0000 (13:32 +0200)
committerKarol Mroz <kmroz@suse.com>
Sat, 23 Apr 2016 11:32:45 +0000 (13:32 +0200)
Signed-off-by: Karol Mroz <kmroz@suse.com>
src/common/ceph_context.cc
src/common/ceph_context.h

index e873c9f8783c5564a82b3f38efaa32c9f71f9241..c8dab36dac6f1c7f034d745fe39306a5b85eb141 100644 (file)
@@ -641,6 +641,11 @@ uint32_t CephContext::get_module_type() const
   return _module_type;
 }
 
+void CephContext::set_init_flags(int flags)
+{
+  _init_flags = flags;
+}
+
 int CephContext::get_init_flags() const
 {
   return _init_flags;
index cdb66f58343a4779ec4b11093bd1660e90caf99a..a455a0c8efdcb06a118f390aab0dfda5a194fa4c 100644 (file)
@@ -84,6 +84,7 @@ public:
   /* Get the module type (client, mon, osd, mds, etc.) */
   uint32_t get_module_type() const;
 
+  void set_init_flags(int flags);
   int get_init_flags() const;
 
   /* Get the PerfCountersCollection of this CephContext */