]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_sync_checkpoint.h
import ceph quincy 17.2.6
[ceph.git] / ceph / src / rgw / rgw_sync_checkpoint.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 /*
5 * Ceph - scalable distributed file system
6 *
7 * Copyright (C) 2020 Red Hat, Inc.
8 *
9 * This is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License version 2.1, as published by the Free Software
12 * Foundation. See file COPYING.
13 *
14 */
15
16 #pragma once
17
18 #include <optional>
19 #include "common/ceph_time.h"
20 #include "rgw_basic_types.h"
21
22 class DoutPrefixProvider;
23 namespace rgw::sal { class RadosStore; }
24 class RGWBucketInfo;
25 class RGWBucketSyncPolicyHandler;
26
27 // poll the bucket's sync status until it's caught up against all sync sources
28 int rgw_bucket_sync_checkpoint(const DoutPrefixProvider* dpp,
29 rgw::sal::RadosStore* store,
30 const RGWBucketSyncPolicyHandler& policy,
31 const RGWBucketInfo& info,
32 std::optional<rgw_zone_id> opt_source_zone,
33 std::optional<rgw_bucket> opt_source_bucket,
34 ceph::timespan retry_delay,
35 ceph::coarse_mono_time timeout_at);