Can hold multiple entries for the same pipe id (if flow defines
more than a single entry).
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
}
void RGWBucketSyncFlowManager::pipe_set::insert(const rgw_sync_bucket_pipe& pipe) {
- pipe_map[pipe.id] = pipe;
+ pipe_map.insert(make_pair(pipe.id, pipe));
auto& rules_ref = rules[endpoints_pair(pipe)];
struct pipe_set {
std::map<endpoints_pair, pipe_rules_ref> rules;
- std::map<string, rgw_sync_bucket_pipe> pipe_map;
+ std::multimap<string, rgw_sync_bucket_pipe> pipe_map;
std::set<pipe_handler> handlers;