Skip to content

Commit

Permalink
#106 set public namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jrse committed Dec 4, 2017
1 parent 682e75f commit 0ce84c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librmb/rados-ceph-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class RadosCephConfig {
void set_ns_suffix(std::string &ns_suffix_) { config.set_ns_suffix(ns_suffix_); }
std::string get_ns_suffix() { return config.get_ns_suffix(); }
const std::string &get_public_namespace() const { return config.get_public_namespace(); }
void set_public_namespace(std::string &public_namespace_) { config.set_public_namespace(public_namespace_); }

void set_cfg_object_name(std::string cfg_object_name_) { config.set_cfg_object_name(cfg_object_name_); }
std::string get_cfg_object_name() { return config.get_cfg_object_name(); }
RadosCephJsonConfig *get_config() { return &config; }
Expand Down
2 changes: 2 additions & 0 deletions src/librmb/tools/rmb/rmb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ int main(int argc, const char **argv) {
ceph_cfg.set_ns_cfg(key_val);
} else if (ceph_cfg.get_config()->get_key_ns_suffix().compare(key) == 0) {
ceph_cfg.set_ns_suffix(key_val);
} else if (ceph_cfg.get_config()->get_key_public_namespace().compare(key) == 0) {
ceph_cfg.set_public_namespace(key_val);
} else {
std::cout << "ERROR: not a valid key: " << key << std::endl;
std::cout << ceph_cfg.get_config()->to_string() << std::endl;
Expand Down

0 comments on commit 0ce84c0

Please sign in to comment.