Skip to content

Commit 6594540

Browse files
authored
Merge pull request ceph#53712 from ronen-fr/wip-rf-move-1
osd: fix a missing 'noexcept' on a move ctor Reviewed-by: Samuel Just <[email protected]>
2 parents 8ec47bb + 084fb34 commit 6594540

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/osd/PG.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,10 +1448,13 @@ class PG : public DoutPrefixProvider,
14481448
*/
14491449
class PGLockWrapper {
14501450
public:
1451-
explicit PGLockWrapper(PGRef locked_pg) : m_pg{locked_pg} {}
1451+
template <typename A_PG_REF>
1452+
explicit PGLockWrapper(A_PG_REF&& locked_pg)
1453+
: m_pg{std::forward<A_PG_REF>(locked_pg)}
1454+
{}
14521455
PGRef pg() { return m_pg; }
14531456
~PGLockWrapper();
1454-
PGLockWrapper(PGLockWrapper&& rhs) : m_pg(std::move(rhs.m_pg)) {
1457+
PGLockWrapper(PGLockWrapper&& rhs) noexcept : m_pg(std::move(rhs.m_pg)) {
14551458
rhs.m_pg = nullptr;
14561459
}
14571460
PGLockWrapper(const PGLockWrapper& rhs) = delete;

0 commit comments

Comments
 (0)