1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
5 * Ceph - scalable distributed file system
7 * Copyright (C) 2020 Red Hat, Inc.
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.
19 #include "common/ceph_time.h"
20 #include "rgw_basic_types.h"
22 class DoutPrefixProvider
;
23 namespace rgw::sal
{ class RadosStore
; }
25 class RGWBucketSyncPolicyHandler
;
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
);