]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG,osd_types: move rw tracking from its own map to ObjectContext
authorSamuel Just <sam.just@inktank.com>
Sat, 26 Oct 2013 23:52:16 +0000 (16:52 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 20:32:56 +0000 (13:32 -0700)
commit807dde4814b640c2084eef39574e09a0330f0c6f
treeeb760e7c36886dbeadab1a04ee563ecc87a1cbfd
parent2cadc231ae4ab1bb2584d8d25c02434a34d15edc
ReplicatedPG,osd_types: move rw tracking from its own map to ObjectContext

We also modify recovering to hold a reference to the recovering obc
in order to ensure that our backfill_read_lock doesn't outlive the
obc.

ReplicatedPG::op_applied no longer clears repop->obc since we need
it to live until the op is finally cleaned up.  This is fine since
repop->obc is now an ObjectContextRef and can clean itself up.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.h