summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_sync_policy.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rgw: implement x-amz-replication-status for PENDING & COMPLETEDAlex Wojno2024-05-131-0/+8
| | | | Signed-off-by: Alex Wojno <awojno@bloomberg.net>
* ceph-dencoder: Add missing rgw types to ceph-dencoder for accurate ↵NitzanMordhai2023-09-071-0/+6
| | | | | | | | | | | | | | | | | | | encode-decode comparison Currently, ceph-dencoder lacks certain rgw types, preventing us from accurately checking the ceph corpus for encode-decode mismatches. This pull request aims to address this issue by adding the missing types to ceph-dencoder. To successfully incorporate these types into ceph-dencoder, we need to introduce the necessary `dump` and `generate_test_instances` functions that was missing in some types. These functions are essential for proper encode and decode of the added types. This PR will enhance the functionality of ceph-dencoder by including the missing types, enabling a comprehensive analysis of encode-decode consistency. With the addition of these types, we can ensure the robustness and correctness of the ceph corpus. This update will significantly contribute to improving the overall reliability and accuracy of ceph-dencoder. It allows for a more comprehensive assessment of the encode-decode behavior, leading to enhanced data integrity and stability within the ceph ecosystem. Fixes: https://tracker.ceph.com/issues/61788 Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
* rgw: Avoid dereferencing nullptr while configuring bucket sync policySoumya Koduri2022-05-261-0/+4
| | | | | | | | While configuring bucket sync policy, in "rgw_sync_bucket_entities::set_bucket()", there could be a case where in bucket doesnt contain any value but is still being dereferenced. This commit fixes the same. Signed-off-by: Soumya Koduri <skoduri@redhat.com>
* rgw:cleanup/refactor json and xml encoders and decodersKaleb S. KEITHLEY2021-12-131-0/+280
| | | | | | | | | move the encoder and decoder methods into their associated class files to eliminate undefined references to the class vtable https://tracker.ceph.com/issues/53596 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
* rgw: build without "using namespace std"Kefu Chai2021-08-131-0/+1
| | | | | | | | | | * add "std::" prefix in headers * add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
* rgw: don't include empty buckets in potential related bucketsYehuda Sadeh2020-01-281-2/+6
| | | | | | Being used by the sync hint system Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: bucket sync: no create param in find directional/symmetricalYehuda Sadeh2020-01-281-22/+2
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: bucket sync: don't use optional for some membersYehuda Sadeh2020-01-281-20/+15
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: remove return std::move()Yehuda Sadeh2020-01-281-1/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: fix pipes zone wildcard match logicYehuda Sadeh2020-01-281-0/+2
| | | | | | and improve logging Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: prepare for system and user mode changesYehuda Sadeh2020-01-281-0/+5
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: filter fetch remote obj after reading remote metadataYehuda Sadeh2020-01-281-5/+29
| | | | | | | | | In the sync case: find the appropriate pipe params that match this remote object (if matches tags / prefix), and adjust fetch if needed -- abort if doesn't match tags. Later will adjust acls as needed (if user sync and not system). Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw, radosgw-admin: explicit zone id typeYehuda Sadeh2020-01-281-6/+6
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: sync: full sync checks for rules prefixesYehuda Sadeh2020-01-281-0/+39
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: sync: pipe rules handlerYehuda Sadeh2020-01-281-3/+28
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: sync: extend data structures to extend bucket sync functionalityYehuda Sadeh2020-01-281-0/+67
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: identify potential related (for sync) buckets on bucket updateYehuda Sadeh2020-01-281-0/+40
| | | | | | Generate a diff off old and new bucket infos. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: sync policy mgr: more fixesYehuda Sadeh2020-01-281-2/+16
| | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
* rgw: move code aroundYehuda Sadeh2020-01-281-0/+307
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>