diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-01-31 14:33:29 -0800 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-02-12 14:47:31 -0800 |
commit | 01b177e35f464e62e7330060d03c286731a5900c (patch) | |
tree | 19a5538a43c4af7ae4668217c49cbed0959940ad | |
parent | 627fc44cb4883099dca44dab31508d6dc7224ec0 (diff) | |
download | ceph-01b177e35f464e62e7330060d03c286731a5900c.tar.gz |
rgw: s/cluster/zone
Old cluster definition is what we'd call zone from now on.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/common/config_opts.h | 2 | ||||
-rw-r--r-- | src/rgw/rgw_admin.cc | 12 | ||||
-rw-r--r-- | src/rgw/rgw_rados.cc | 16 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 303254e1eb3..1783ca3de52 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -481,7 +481,7 @@ OPTION(rgw_op_thread_suicide_timeout, OPT_INT, 0) OPTION(rgw_thread_pool_size, OPT_INT, 100) OPTION(rgw_num_control_oids, OPT_INT, 8) -OPTION(rgw_cluster_root_pool, OPT_STR, ".rgw.root") +OPTION(rgw_zone_root_pool, OPT_STR, ".rgw.root") OPTION(rgw_log_nonexistent_bucket, OPT_BOOL, false) OPTION(rgw_log_object_name, OPT_STR, "%Y-%m-%d-%H-%i-%n") // man date to see codes (a subset are supported) OPTION(rgw_log_object_name_utc, OPT_BOOL, false) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index ae04a106056..a2b80d34e51 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -56,7 +56,7 @@ void _usage() cerr << " bucket rm remove bucket\n"; cerr << " bucket check check bucket index\n"; cerr << " object rm remove object\n"; - cerr << " cluster info show cluster params info\n"; + cerr << " zone info show zone params info\n"; cerr << " pool add add an existing pool for data placement\n"; cerr << " pool rm remove an existing pool from data placement set\n"; cerr << " pools list list placement active set\n"; @@ -158,7 +158,7 @@ enum { OPT_OBJECT_RM, OPT_GC_LIST, OPT_GC_PROCESS, - OPT_CLUSTER_INFO, + OPT_ZONE_INFO, OPT_CAPS_ADD, OPT_CAPS_RM, }; @@ -191,7 +191,7 @@ static int get_cmd(const char *cmd, const char *prev_cmd, bool *need_more) strcmp(cmd, "log") == 0 || strcmp(cmd, "usage") == 0 || strcmp(cmd, "object") == 0 || - strcmp(cmd, "cluster") == 0 || + strcmp(cmd, "zone") == 0 || strcmp(cmd, "temp") == 0 || strcmp(cmd, "caps") == 0 || strcmp(cmd, "gc") == 0) { @@ -277,9 +277,9 @@ static int get_cmd(const char *cmd, const char *prev_cmd, bool *need_more) } else if (strcmp(prev_cmd, "object") == 0) { if (strcmp(cmd, "rm") == 0) return OPT_OBJECT_RM; - } else if (strcmp(prev_cmd, "cluster") == 0) { + } else if (strcmp(prev_cmd, "zone") == 0) { if (strcmp(cmd, "info") == 0) - return OPT_CLUSTER_INFO; + return OPT_ZONE_INFO; } else if (strcmp(prev_cmd, "gc") == 0) { if (strcmp(cmd, "list") == 0) return OPT_GC_LIST; @@ -1659,7 +1659,7 @@ next: } } - if (opt_cmd == OPT_CLUSTER_INFO) { + if (opt_cmd == OPT_ZONE_INFO) { store->params.dump(formatter); formatter->flush(cout); } diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index d75b0d8a8e5..b66761ebb94 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -45,7 +45,7 @@ static string dir_oid_prefix = ".dir."; static string default_storage_pool = ".rgw.buckets"; static string avail_pools = ".pools.avail"; -static string cluster_info_oid = "cluster_info"; +static string zone_info_oid = "zone_info"; static RGWObjCategory shadow_category = RGW_OBJ_CATEGORY_SHADOW; @@ -53,7 +53,7 @@ static RGWObjCategory main_category = RGW_OBJ_CATEGORY_MAIN; #define RGW_USAGE_OBJ_PREFIX "usage." -#define RGW_DEFAULT_CLUSTER_ROOT_POOL ".rgw.root" +#define RGW_DEFAULT_zone_ROOT_POOL ".rgw.root" #define dout_subsys ceph_subsys_rgw @@ -74,7 +74,7 @@ void RGWRadosParams::init_default() void RGWRadosParams::dump(Formatter *f) const { - f->open_object_section("cluster"); + f->open_object_section("zone"); f->dump_string("domain_root", domain_root.pool); f->dump_string("control_pool", control_pool.pool); f->dump_string("gc_pool", gc_pool.pool); @@ -90,14 +90,14 @@ void RGWRadosParams::dump(Formatter *f) const int RGWRadosParams::init(CephContext *cct, RGWRados *store) { - string pool_name = cct->_conf->rgw_cluster_root_pool; + string pool_name = cct->_conf->rgw_zone_root_pool; if (pool_name.empty()) - pool_name = RGW_DEFAULT_CLUSTER_ROOT_POOL; + pool_name = RGW_DEFAULT_zone_ROOT_POOL; rgw_bucket pool(pool_name.c_str()); bufferlist bl; - int ret = rgw_get_obj(store, NULL, pool, cluster_info_oid, bl); + int ret = rgw_get_obj(store, NULL, pool, zone_info_oid, bl); if (ret == -ENOENT) { init_default(); return 0; // don't try to store obj, we're not fully initialized yet @@ -109,7 +109,7 @@ int RGWRadosParams::init(CephContext *cct, RGWRados *store) bufferlist::iterator iter = bl.begin(); ::decode(*this, iter); } catch (buffer::error& err) { - ldout(cct, 0) << "ERROR: failed to decode cluster info from " << pool << ":" << cluster_info_oid << dendl; + ldout(cct, 0) << "ERROR: failed to decode zone info from " << pool << ":" << zone_info_oid << dendl; return -EIO; } @@ -553,7 +553,7 @@ int RGWRados::log_usage(map<rgw_user_bucket, RGWUsageBatch>& usage_info) string hash; string last_user; - /* restructure usage map, cluster by object hash */ + /* restructure usage map, zone by object hash */ map<rgw_user_bucket, RGWUsageBatch>::iterator iter; for (iter = usage_info.begin(); iter != usage_info.end(); ++iter) { const rgw_user_bucket& ub = iter->first; |