mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
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:
commit
af0803030a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user