Merge pull request #11154 from stiopaa1/osd_pg_useMoveOnSharedPtr

osd/PG.h: move shared ptr instead of copying it

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-11-28 11:07:07 +08:00 committed by GitHub
commit af0803030a

View File

@ -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 {