]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_period_puller.h
import quincy 17.2.0
[ceph.git] / ceph / src / rgw / rgw_period_puller.h
CommitLineData
7c673cae 1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
9f95a23c 2// vim: ts=8 sw=2 smarttab ft=cpp
7c673cae
FG
3
4#ifndef CEPH_RGW_PERIOD_PULLER_H
5#define CEPH_RGW_PERIOD_PULLER_H
6
7#include "rgw_period_history.h"
9f95a23c 8#include "include/common_fwd.h"
f67539c2 9#include "rgw/services/svc_sys_obj.h"
7c673cae 10
7c673cae
FG
11class RGWPeriod;
12
13class RGWPeriodPuller : public RGWPeriodHistory::Puller {
9f95a23c
TL
14 CephContext *cct;
15
16 struct {
17 RGWSI_Zone *zone;
18 RGWSI_SysObj *sysobj;
19 } svc;
20
7c673cae 21 public:
9f95a23c 22 explicit RGWPeriodPuller(RGWSI_Zone *zone_svc, RGWSI_SysObj *sysobj_svc);
7c673cae 23
b3b6e05e 24 int pull(const DoutPrefixProvider *dpp, const std::string& period_id, RGWPeriod& period, optional_yield y) override;
7c673cae
FG
25};
26
27#endif // CEPH_RGW_PERIOD_PULLER_H