]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_period_puller.h
import ceph pacific 16.2.5
[ceph.git] / ceph / src / rgw / rgw_period_puller.h
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 #ifndef CEPH_RGW_PERIOD_PULLER_H
5 #define CEPH_RGW_PERIOD_PULLER_H
6
7 #include "rgw_period_history.h"
8 #include "include/common_fwd.h"
9 #include "rgw/services/svc_sys_obj.h"
10
11 class RGWPeriod;
12
13 class RGWPeriodPuller : public RGWPeriodHistory::Puller {
14 CephContext *cct;
15
16 struct {
17 RGWSI_Zone *zone;
18 RGWSI_SysObj *sysobj;
19 } svc;
20
21 public:
22 explicit RGWPeriodPuller(RGWSI_Zone *zone_svc, RGWSI_SysObj *sysobj_svc);
23
24 int pull(const DoutPrefixProvider *dpp, const std::string& period_id, RGWPeriod& period, optional_yield y) override;
25 };
26
27 #endif // CEPH_RGW_PERIOD_PULLER_H