We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ec47bb + 084fb34 commit 6594540Copy full SHA for 6594540
src/osd/PG.h
@@ -1448,10 +1448,13 @@ class PG : public DoutPrefixProvider,
1448
*/
1449
class PGLockWrapper {
1450
public:
1451
- explicit PGLockWrapper(PGRef locked_pg) : m_pg{locked_pg} {}
+ template <typename A_PG_REF>
1452
+ explicit PGLockWrapper(A_PG_REF&& locked_pg)
1453
+ : m_pg{std::forward<A_PG_REF>(locked_pg)}
1454
+ {}
1455
PGRef pg() { return m_pg; }
1456
~PGLockWrapper();
- PGLockWrapper(PGLockWrapper&& rhs) : m_pg(std::move(rhs.m_pg)) {
1457
+ PGLockWrapper(PGLockWrapper&& rhs) noexcept : m_pg(std::move(rhs.m_pg)) {
1458
rhs.m_pg = nullptr;
1459
}
1460
PGLockWrapper(const PGLockWrapper& rhs) = delete;
0 commit comments