]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/services/svc_bilog_rados.h
84f5679af1051395a091dcdb31a8ced1daa73083
2 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
3 // vim: ts=8 sw=2 smarttab ft=cpp
6 * Ceph - scalable distributed file system
8 * Copyright (C) 2019 Red Hat, Inc.
10 * This is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License version 2.1, as published by the Free Software
13 * Foundation. See file COPYING.
20 #include "rgw/rgw_service.h"
22 #include "svc_rados.h"
27 class RGWSI_BILog_RADOS
: public RGWServiceInstance
31 RGWSI_BucketIndex_RADOS
*bi
{nullptr};
34 RGWSI_BILog_RADOS(CephContext
*cct
);
36 void init(RGWSI_BucketIndex_RADOS
*bi_rados_svc
);
38 int log_start(const DoutPrefixProvider
*dpp
, const RGWBucketInfo
& bucket_info
, int shard_id
);
39 int log_stop(const DoutPrefixProvider
*dpp
, const RGWBucketInfo
& bucket_info
, int shard_id
);
41 int log_trim(const DoutPrefixProvider
*dpp
,
42 const RGWBucketInfo
& bucket_info
,
44 std::string
& start_marker
,
45 std::string
& end_marker
);
46 int log_list(const DoutPrefixProvider
*dpp
,
47 const RGWBucketInfo
& bucket_info
,
51 std::list
<rgw_bi_log_entry
>& result
,
54 int get_log_status(const DoutPrefixProvider
*dpp
,
55 const RGWBucketInfo
& bucket_info
,
57 map
<int, string
> *markers
,