summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-06-17 10:51:25 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-06-17 11:09:11 -0700
commitb8d2ba144f08777dd5510e496ade455d30daa576 (patch)
tree933a2293a89555d68cf4cc6d5ac053ebf1378a5a
parentdb0c250f38e61269ee711c3a2cf73dce7fc750ad (diff)
downloadceph-b8d2ba144f08777dd5510e496ade455d30daa576.tar.gz
rgw: set default region as master
A default region that is automaticall created needs to be set as the master. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_rados.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc
index 0583ba014bc..dcbfae3e1cd 100644
--- a/src/rgw/rgw_rados.cc
+++ b/src/rgw/rgw_rados.cc
@@ -204,6 +204,8 @@ int RGWRegion::create_default()
name = "default";
string zone_name = "default";
+ is_master = true;
+
RGWZone& default_zone = zones[zone_name];
default_zone.name = zone_name;