]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: removing an unneeded make_unique() 44331/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 16 Dec 2021 10:49:57 +0000 (10:49 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 16 Dec 2021 10:49:57 +0000 (10:49 +0000)
commitb20976e9c30ddb62574022e054497c59f01f11ba
tree16d2207baaefabdcbe85df7d8846a1ca2e577501
parente911f41672fb9bafdb4b4b053998fb275c81f70d
crimson/osd: removing an unneeded make_unique()

As the desired lifetime of the object matches the lifetime if
it is allocated on the stack, and as no ownership is transferred,
there is no point in using a unique_ptr here.

And see Google's guidance (https://abseil.io/tips/187),
under "Common Anti-Pattern: Avoiding &".

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/crimson/osd/main.cc