]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_trim_datalog.h
import ceph pacific 16.2.5
[ceph.git] / ceph / src / rgw / rgw_trim_datalog.h
CommitLineData
9f95a23c
TL
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#pragma once
5
f67539c2
TL
6#include <string>
7#include <vector>
8
b3b6e05e
TL
9#include "common/dout.h"
10
9f95a23c
TL
11class RGWCoroutine;
12class RGWRados;
13class RGWHTTPManager;
14class utime_t;
15namespace rgw { namespace sal {
16 class RGWRadosStore;
17} }
18
19// DataLogTrimCR factory function
b3b6e05e 20extern RGWCoroutine* create_data_log_trim_cr(const DoutPrefixProvider *dpp, rgw::sal::RGWRadosStore *store,
9f95a23c
TL
21 RGWHTTPManager *http,
22 int num_shards, utime_t interval);
23
24// factory function for datalog trim via radosgw-admin
b3b6e05e 25RGWCoroutine* create_admin_data_log_trim_cr(const DoutPrefixProvider *dpp, rgw::sal::RGWRadosStore *store,
9f95a23c
TL
26 RGWHTTPManager *http,
27 int num_shards,
28 std::vector<std::string>& markers);