]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
SimpleLock: use MutationRef instead of raw pointers
authorGreg Farnum <greg@inktank.com>
Wed, 12 Mar 2014 03:52:21 +0000 (20:52 -0700)
committerGreg Farnum <greg@inktank.com>
Fri, 4 Apr 2014 17:40:51 +0000 (10:40 -0700)
commit3429dc594d7c9b9075ec473fd45fe059a2d1cad5
tree2640cc7cf4bc44447251724c2f7ea966e63d4291
parentc09878e92a9394237e181d91a668622e3cdf885e
SimpleLock: use MutationRef instead of raw pointers

While we're here, remove the non-const get_xlock_by() (because
we don't need it). Also note we return a full MutationRef
(instead of a ref to the stored one). It's necessary in case we
don't have a set-up more() object.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mds/SimpleLock.h