]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bucket sync: use list instead of vector
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 17 Jan 2020 19:53:09 +0000 (11:53 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 18:20:40 +0000 (10:20 -0800)
Keeping pointers into entries inside the container, vector might be
reallocated.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_bucket_sync.h

index 3e541044947e498803cc8741f4dcc8de3d96fd0a..e24b33af3e982987f670ebd1761a9519b486e1b8 100644 (file)
@@ -137,7 +137,7 @@ public:
    * pipe_rules: deal with a set of pipes that have common endpoints_pair
    */
   class pipe_rules {
-    std::vector<rgw_sync_bucket_pipe> pipes;
+    std::list<rgw_sync_bucket_pipe> pipes;
 
   public:
     using prefix_map_t = multimap<string, rgw_sync_bucket_pipe *>;