diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2019-06-12 00:07:04 +0200 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2019-07-29 21:20:48 +0200 |
commit | ac2a69d8d0d2779ace50f0ef01ae3dda901bebd3 (patch) | |
tree | d6d46a868ac5405e2197fd3653ab7ad9aab0fb52 /src/rgw/services/svc_bi_rados.h | |
parent | rgw: svc.bucket: adding missing files (diff) | |
download | ceph-ac2a69d8d0d2779ace50f0ef01ae3dda901bebd3.tar.xz ceph-ac2a69d8d0d2779ace50f0ef01ae3dda901bebd3.zip |
rgw: add svc.bilog_rados
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/services/svc_bi_rados.h')
-rw-r--r-- | src/rgw/services/svc_bi_rados.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rgw/services/svc_bi_rados.h b/src/rgw/services/svc_bi_rados.h index c0f1ea1546a..6f66c3b5a66 100644 --- a/src/rgw/services/svc_bi_rados.h +++ b/src/rgw/services/svc_bi_rados.h @@ -25,6 +25,8 @@ struct rgw_bucket_dir_header; +class RGWSI_BILog_RADOS; + #define RGW_NO_SHARD -1 #define RGW_SHARDS_PRIME_0 7877 @@ -32,6 +34,8 @@ struct rgw_bucket_dir_header; class RGWSI_BucketIndex_RADOS : public RGWSI_BucketIndex { + friend class RGWSI_BILog_RADOS; + int open_pool(const rgw_pool& pool, RGWSI_RADOS::Pool *index_pool, bool mostly_omap); @@ -78,12 +82,14 @@ public: struct Svc { RGWSI_Zone *zone{nullptr}; RGWSI_RADOS *rados{nullptr}; + RGWSI_BILog_RADOS *bilog{nullptr}; } svc; RGWSI_BucketIndex_RADOS(CephContext *cct); void init(RGWSI_Zone *zone_svc, - RGWSI_RADOS *rados_svc); + RGWSI_RADOS *rados_svc, + RGWSI_BILog_RADOS *bilog_svc); static int shards_max() { return RGW_SHARDS_PRIME_1; @@ -108,6 +114,9 @@ public: int get_reshard_status(const RGWBucketInfo& bucket_info, std::list<cls_rgw_bucket_instance_entry> *status); + + int handle_overwrite(const RGWBucketInfo& info, + const RGWBucketInfo& orig_info); }; |