diff --git a/src/osd/PG.h b/src/osd/PG.h index 47befc42eb7..9a61cf49313 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -228,7 +228,7 @@ protected: void update_osdmap_ref(OSDMapRef newmap) { assert(_lock.is_locked_by_me()); Mutex::Locker l(map_lock); - osdmap_ref = newmap; + osdmap_ref = std::move(newmap); } OSDMapRef get_osdmap_with_maplock() const {