]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: avoid EMetaBlob::fullbit copying with shared_ptr
authorSage Weil <sage.weil@dreamhost.com>
Mon, 20 Jun 2011 20:56:09 +0000 (13:56 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 20 Jun 2011 21:06:18 +0000 (14:06 -0700)
commitcc644b842261dbeefde804ed999061b8733a9190
tree05c0d5e0b8e1680f936e628817b137352b8863d1
parentf78de01ab6702ab13af059b3c8dde4008761fe54
mds: avoid EMetaBlob::fullbit copying with shared_ptr

The fullbit subclass has a pointer, making it unsafe to copy around.  Fix
by adding a undefined copy constructor and operator, and using a shared_ptr
to reference it in the containing STL list<>.

Tested-by: Sam Lang <samlang@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/events/EMetaBlob.h
src/mds/journal.cc