]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: remove redundant std::move() 35207/head
authorKefu Chai <kchai@redhat.com>
Sat, 23 May 2020 08:26:42 +0000 (16:26 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 23 May 2020 08:27:49 +0000 (16:27 +0800)
this should address following warning:

../src/crimson/osd/ops_executer.cc:821:6:   required from here
../src/crimson/osd/ops_executer.cc:818:37: warning: redundant move in return statement [-Wredundant-move]
  818 |             return std::move(entries);
      |                                     ^
../src/crimson/osd/ops_executer.cc:818:37: note: remove ‘std::move’ call

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/ops_executer.cc

index b6d557a31cb209fabfa4bfe839f4a5a4bedf3ac1..32b77f66e9a4c4f2501760a810da425e7d49cea0 100644 (file)
@@ -815,7 +815,7 @@ static seastar::future<ceph::bufferlist> do_pgls_common(
             if (!obj.is_min()) {
               entries.emplace_back(obj.oid, obj.get_key());
             }
-            return std::move(entries);
+            return entries;
           }),
         seastar::make_ready_future<hobject_t>(next));
     }).then([pg_end](auto&& ret) {