]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Implementation for S3 Get Bucket Location 2329/head
authorAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Mon, 25 Aug 2014 08:31:54 +0000 (14:01 +0530)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Fri, 5 Sep 2014 03:36:27 +0000 (09:06 +0530)
commitd8e672f351e3f34a3e8aa06235c117e5b7d09736
tree0f8ab7ad7757c06df63a628f2eaa6f2662c781bd
parent9e503b56fc8f67cc10740a225529aff59b48dd81
rgw: Implementation for S3 Get Bucket Location

S3 API supports getting the location for a bucket, which gives out one
of those geographic zones (US-WEST-1, EU for eg). Also it returns an
empty string for the default region.
(http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html)

Since LocationConstraint corresponds to regions in our case, this API
returns the region, for the "default" region empty string is returned

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h