From 8f6be2f1e133053684721b2d2891c7dca542a9f0 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 17 Jan 2020 11:53:09 -0800 Subject: [PATCH] rgw: bucket sync: use list instead of vector Keeping pointers into entries inside the container, vector might be reallocated. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_bucket_sync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_bucket_sync.h b/src/rgw/rgw_bucket_sync.h index 3e541044947..e24b33af3e9 100644 --- a/src/rgw/rgw_bucket_sync.h +++ b/src/rgw/rgw_bucket_sync.h @@ -137,7 +137,7 @@ public: * pipe_rules: deal with a set of pipes that have common endpoints_pair */ class pipe_rules { - std::vector pipes; + std::list pipes; public: using prefix_map_t = multimap; -- 2.39.5