summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_bucket_sync.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2019-11-19 19:56:33 +0100
committerYehuda Sadeh <yehuda@redhat.com>2020-01-28 19:20:39 +0100
commit2d7a94900e518cf1517a07d4e1ec011160099560 (patch)
treea35da0202087b09a7e82ded38190ce8592632499 /src/rgw/rgw_bucket_sync.h
parentrgw: sync: add mode (system, user) as a pipe param (diff)
downloadceph-2d7a94900e518cf1517a07d4e1ec011160099560.tar.xz
ceph-2d7a94900e518cf1517a07d4e1ec011160099560.zip
rgw: find pipe rules param for specific obj changes
- reuse RGWObjTags::tag_map_t instead of vector of strings - fix the prefix search Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_bucket_sync.h')
-rw-r--r--src/rgw/rgw_bucket_sync.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/rgw_bucket_sync.h b/src/rgw/rgw_bucket_sync.h
index ceb1c14b909..63da7836a87 100644
--- a/src/rgw/rgw_bucket_sync.h
+++ b/src/rgw/rgw_bucket_sync.h
@@ -147,7 +147,7 @@ public:
void insert(const rgw_sync_bucket_pipe& pipe);
bool find_obj_params(const rgw_obj_key& key,
- const vector<string>& tags,
+ const RGWObjTags::tag_map_t& tags,
rgw_sync_pipe_params *params) const;
void scan_prefixes(std::vector<string> *prefixes) const;
@@ -178,7 +178,7 @@ public:
}
bool find_obj_params(const rgw_obj_key& key,
- const std::vector<string>& tags,
+ const RGWObjTags::tag_map_t& tags,
rgw_sync_pipe_params *params) const {
if (!rules) {
return false;