]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG.h: move shared ptr instead of copying it 11154/head
authorMichal Jarzabek <stiopa@gmail.com>
Sun, 18 Sep 2016 20:00:26 +0000 (21:00 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Tue, 20 Sep 2016 18:28:39 +0000 (19:28 +0100)
commite3fc4dbdd67b86737380bf46c15cf0becdacd29e
treee315faecdcfcc7b347d796a89d895d8d5f834f58
parente1667dca3707cb3e752d318b46d9d246a89ebe47
osd/PG.h: move shared ptr instead of copying it

When we move newmap into osdmap_ref we prevent unnecessary increase
and decrease of reference count when newmap goes out of scope.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/osd/PG.h