]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds,osd: fix clang warnings to prevent unneeded copies 37557/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 5 Oct 2020 22:47:05 +0000 (00:47 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 6 Oct 2020 01:48:06 +0000 (03:48 +0200)
commit6dc03460ffa1315e91ea21b1125200d3d5a01253
tree59c00176d952c17457b6005b49bb5a0fdb6fa3b2
parent8772316a0523b1c51637af187102516b6ce1c9b6
mds,osd: fix clang warnings to prevent unneeded copies

/home/jenkins/workspace/ceph-master-compile/src/osd/OSDMap.cc:3901:19: warning: loop variable 'pg' of type 'const std::__1::pair<const pg_t, int>' creates a copy from type 'const std::__1::pair<const pg_t, int>' [-Wrange-loop-construct]
  for (const auto pg : *primary_temp)
                  ^
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/mds/SimpleLock.h
src/osd/OSDMap.cc