]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't force pool names to start with periods
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 11 Nov 2015 23:32:34 +0000 (15:32 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:31 +0000 (16:13 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_json_enc.cc

index 8039ffdaa68738e647b3822b93174870dcb090c7..e4f367938dad682677e04f149c7fdbe9d32ecacc 100644 (file)
@@ -796,9 +796,6 @@ static void decode_json(const char *field, rgw_bucket& bucket, JSONObj *obj)
 {
   string pool;
   JSONDecoder::decode_json(field, pool, obj);
-  if (pool[0] != '.') {
-    pool = string(".") + pool;
-  }
   bucket = rgw_bucket(pool.c_str());
 }