summaryrefslogtreecommitdiffstats
path: root/src/rgw/services/svc_bi_rados.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2019-06-12 00:07:04 +0200
committerCasey Bodley <cbodley@redhat.com>2019-07-29 21:20:48 +0200
commitac2a69d8d0d2779ace50f0ef01ae3dda901bebd3 (patch)
treed6d46a868ac5405e2197fd3653ab7ad9aab0fb52 /src/rgw/services/svc_bi_rados.h
parentrgw: svc.bucket: adding missing files (diff)
downloadceph-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.h11
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);
};