]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/services/svc_bucket.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / rgw / services / svc_bucket.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
3
4
5 #include "svc_bucket.h"
6
7 #define dout_subsys ceph_subsys_rgw
8
9 std::string RGWSI_Bucket::get_entrypoint_meta_key(const rgw_bucket& bucket)
10 {
11 if (bucket.bucket_id.empty()) {
12 return bucket.get_key();
13 }
14
15 rgw_bucket b(bucket);
16 b.bucket_id.clear();
17
18 return b.get_key();
19 }
20
21 std::string RGWSI_Bucket::get_bi_meta_key(const rgw_bucket& bucket)
22 {
23 return bucket.get_key();
24 }
25