]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove return std::move()
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 21 Jan 2020 21:04:16 +0000 (13:04 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 18:20:40 +0000 (10:20 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket_sync.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_sync_policy.cc

index 2ec0648e6b466e42e53156e7f049879918edb5be..11c66c10a4f99850eb912a71fb10e0b45adb0b8f 100644 (file)
@@ -2361,7 +2361,7 @@ static std::vector<string> convert_bucket_set_to_str_vec(const std::set<rgw_buck
   for (auto& b : bs) {
     result.push_back(b.get_key());
   }
-  return std::move(result);
+  return result;
 }
 
 static void get_hint_entities(const std::set<rgw_zone_id>& zones, const std::set<rgw_bucket>& buckets,
index c120991af25240bdf1affa0dd4879c605a84a5dc..3474142322b60d2875c040561f41c6fb4aab58d6 100644 (file)
@@ -47,7 +47,7 @@ static std::vector<rgw_sync_bucket_pipe> filter_relevant_pipes(const std::vector
     }
   }
 
-  return std::move(relevant_pipes);
+  return relevant_pipes;
 }
 
 static bool is_wildcard_bucket(const rgw_bucket& bucket)
@@ -229,7 +229,7 @@ vector<rgw_sync_bucket_pipe> rgw_sync_group_pipe_map::find_source_pipes(const rg
       result.push_back(pipe);
     }
   }
-  return std::move(result);
+  return result;
 }
 
 /*
@@ -250,7 +250,7 @@ vector<rgw_sync_bucket_pipe> rgw_sync_group_pipe_map::find_dest_pipes(std::optio
     }
   }
 
-  return std::move(result);
+  return result;
 }
 
 /*
@@ -839,7 +839,7 @@ multimap<rgw_zone_id, rgw_sync_bucket_pipe> RGWBucketSyncPolicyHandler::get_all_
     m.insert(make_pair(*pipe.source.zone, pipe));
   }
 
-  return std::move(m);
+  return m;
 }
 
 multimap<rgw_zone_id, rgw_sync_bucket_pipe> RGWBucketSyncPolicyHandler::get_all_dests() const
index c2f7c298a0171e24763be8390ae22a58b18ee320..def86793e02d717e8e0e08f5cf33be5038be022d 100644 (file)
@@ -853,7 +853,7 @@ struct ReplicationConfiguration {
         }
       }
 
-      return std::move(ids);
+      return ids;
     }
 
     vector<string> get_zone_names_from_ids(rgw::sal::RGWRadosStore *store,
@@ -867,7 +867,7 @@ struct ReplicationConfiguration {
         }
       }
 
-      return std::move(names);
+      return names;
     }
 
     std::optional<DeleteMarkerReplication> delete_marker_replication;
index d04f632d397a59265a3a97e7e9d4b7bf217652aa..4bd7fbdadabd8481d51758af311c805332e42287 100644 (file)
@@ -207,7 +207,7 @@ std::vector<rgw_sync_bucket_entity> rgw_sync_bucket_entities::expand() const
     e.all_zones = true;
     e.bucket = b;
     result.push_back(e);
-    return std::move(result);
+    return result;
   }
 
   if (!zones) {