Skip to content

Commit

Permalink
ceph-context: add function to set init flags
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Mroz <kmroz@suse.com>
(cherry picked from commit aecab14)
  • Loading branch information
kmroz committed Apr 26, 2016
1 parent 77fdbf1 commit 770ae9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/ceph_context.cc
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/common/ceph_context.h
Expand Up @@ -84,6 +84,7 @@ class CephContext {
/* 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 */
Expand Down

0 comments on commit 770ae9e

Please sign in to comment.